From cd8d510b2741bcff3796eb0c3986122682507720 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 4 Jul 2008 16:15:29 +0000 Subject: [PATCH] Fix wp_get_attachment_thumb_url() tumbnail back compat. Props DD32. fixes #7242 git-svn-id: https://develop.svn.wordpress.org/trunk@8257 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index dc625d0116..61e31e808f 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -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];