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:
ryan 2008-07-04 16:15:29 +00:00
parent 897fa5bf62
commit 4ead38ccbb
1 changed files with 1 additions and 1 deletions

View File

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