Changeset 8257

Show
Ignore:
Timestamp:
07/04/08 16:15:29 (3 months ago)
Author:
ryan
Message:

Fix wp_get_attachment_thumb_url() tumbnail back compat. Props DD32. fixes #7242

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/media.php

    r8239 r8257  
    7474    elseif ( $size == 'thumbnail' ) { 
    7575        // fall back to the old thumbnail 
    76         if ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) { 
     76        if ( ($thumb_file = wp_get_attachment_thumb_file($id)) && $info = getimagesize($thumb_file) ) { 
    7777            $img_url = str_replace(basename($img_url), basename($thumb_file), $img_url); 
    7878            $width = $info[0];