From 7aa9161dc37c862ea9be51065721b6a2aff90536 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 3 Mar 2008 20:53:04 +0000 Subject: [PATCH] Image sizing fix from andy. fixes #6074 git-svn-id: https://develop.svn.wordpress.org/trunk@7137 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index 4e4335bdf5..d546204b09 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -73,6 +73,8 @@ function image_downsize($id, $size = 'medium') { $width = $info[0]; $height = $info[1]; } + else + return false; } elseif ( isset($meta['width'], $meta['height']) ) { // any other type: use the real image and constrain it