Make WordPress Core


Ignore:
Timestamp:
03/03/2008 04:17:37 AM (17 years ago)
Author:
matt
Message:

Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r7073 r7135  
    390390    $file = get_attached_file( $post->ID );
    391391
    392     if ( !$fullsize && $thumbfile = wp_get_attachment_thumb_file( $post->ID ) ) {
     392    if ( !$fullsize && $src = wp_get_attachment_thumb_url( $post->ID ) ) {
    393393        // We have a thumbnail desired, specified and existing
    394394
    395         $src = wp_get_attachment_thumb_url( $post->ID );
    396         $src_file = $thumbfile;
     395        $src_file = basename($src);
    397396        $class = 'attachmentthumb';
    398397    } elseif ( wp_attachment_is_image( $post->ID ) ) {
Note: See TracChangeset for help on using the changeset viewer.