mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Make sure attachment meta data is an array. Props nbachiyski. fixes #7252
git-svn-id: https://develop.svn.wordpress.org/trunk@8261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2424,7 +2424,7 @@ function wp_get_attachment_thumb_file( $post_id = 0 ) {
|
||||
$post_id = (int) $post_id;
|
||||
if ( !$post =& get_post( $post_id ) )
|
||||
return false;
|
||||
if ( !$imagedata = wp_get_attachment_metadata( $post->ID ) )
|
||||
if ( !is_array( $imagedata = wp_get_attachment_metadata( $post->ID ) ) )
|
||||
return false;
|
||||
|
||||
$file = get_attached_file( $post->ID );
|
||||
|
||||
Reference in New Issue
Block a user