mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +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:
@@ -274,7 +274,7 @@ function image_make_intermediate_size($file, $width, $height, $crop=false) {
|
||||
}
|
||||
|
||||
function image_get_intermediate_size($post_id, $size='thumbnail') {
|
||||
if ( !$imagedata = wp_get_attachment_metadata( $post_id ) )
|
||||
if ( !is_array( $imagedata = wp_get_attachment_metadata( $post_id ) ) )
|
||||
return false;
|
||||
|
||||
// get the best one for a specified set of dimensions
|
||||
|
||||
Reference in New Issue
Block a user