mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Attachment data abstraction from mdawaffe. fixes #3440
git-svn-id: https://develop.svn.wordpress.org/trunk@4612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2016,7 +2016,7 @@ function the_attachment_links( $id = false ) {
|
||||
return false;
|
||||
|
||||
$icon = get_attachment_icon( $post->ID );
|
||||
$attachment_data = get_post_meta( $id, '_wp_attachment_metadata', true );
|
||||
$attachment_data = wp_get_attachment_metadata( $id );
|
||||
$thumb = isset( $attachment_data['thumb'] );
|
||||
?>
|
||||
<form id="the-attachment-links">
|
||||
|
||||
Reference in New Issue
Block a user