mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Image sizing fix from andy. fixes #6074
git-svn-id: http://svn.automattic.com/wordpress/trunk@7137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
46acda57a4
commit
0ab4077b3c
@ -73,6 +73,8 @@ function image_downsize($id, $size = 'medium') {
|
|||||||
$width = $info[0];
|
$width = $info[0];
|
||||||
$height = $info[1];
|
$height = $info[1];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
elseif ( isset($meta['width'], $meta['height']) ) {
|
elseif ( isset($meta['width'], $meta['height']) ) {
|
||||||
// any other type: use the real image and constrain it
|
// any other type: use the real image and constrain it
|
||||||
|
Loading…
Reference in New Issue
Block a user