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-admin/includes/media.php

    r7130 r7135  
    5656    if ( $url )
    5757        $html = "<a href='".attribute_escape($url)."'$rel>$html</a>";
    58     elseif ( $size == 'thumb' || $size == 'medium' )
     58    elseif ( $size == 'thumbnail' || $size == 'medium' )
    5959        $html = '<a href="'.get_attachment_link($id).'"'.$rel.'>'.$html.'</a>';
    6060
     
    468468            'input' => 'html',
    469469            'html'  => "
    470                 " . ( $thumb ? "<input type='radio' name='attachments[$post->ID][image-size]' id='image-size-thumb-$post->ID' value='thumb' />
     470                " . ( $thumb ? "<input type='radio' name='attachments[$post->ID][image-size]' id='image-size-thumb-$post->ID' value='thumbnail' />
    471471                <label for='image-size-thumb-$post->ID'>" . __('Thumbnail') . "</label>
    472472                " : '' ) . "<input type='radio' name='attachments[$post->ID][image-size]' id='image-size-medium-$post->ID' value='medium' checked='checked' />
Note: See TracChangeset for help on using the changeset viewer.