From 0ab4077b3c288526b41fc94af6f15dfaf4dbeab2 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 3 Mar 2008 20:53:04 +0000 Subject: [PATCH] Image sizing fix from andy. fixes #6074 git-svn-id: http://svn.automattic.com/wordpress/trunk@7137 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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