Image sizing fix from andy. fixes #6074

git-svn-id: https://develop.svn.wordpress.org/trunk@7137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-03 20:53:04 +00:00
parent eb60b59c5d
commit 7aa9161dc3
1 changed files with 2 additions and 0 deletions

View File

@ -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