Make WordPress Core

Changeset 8257


Ignore:
Timestamp:
07/04/2008 04:15:29 PM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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];
Note: See TracChangeset for help on using the changeset viewer.