Fix wp_get_attachment_thumb_url() tumbnail back compat. Props DD32. fixes #7242
git-svn-id: http://svn.automattic.com/wordpress/trunk@8257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
897fa5bf62
commit
4ead38ccbb
|
@ -73,7 +73,7 @@ function image_downsize($id, $size = 'medium') {
|
|||
}
|
||||
elseif ( $size == 'thumbnail' ) {
|
||||
// fall back to the old thumbnail
|
||||
if ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) {
|
||||
if ( ($thumb_file = wp_get_attachment_thumb_file($id)) && $info = getimagesize($thumb_file) ) {
|
||||
$img_url = str_replace(basename($img_url), basename($thumb_file), $img_url);
|
||||
$width = $info[0];
|
||||
$height = $info[1];
|
||||
|
|
Loading…
Reference in New Issue