WordPress.org

Make WordPress Core

Changeset 8670


Ignore:
Timestamp:
08/19/08 17:08:18 (7 years ago)
Author:
ryan
Message:

Don't default to an unselectable image size. Props tellyworth. fixes #7528 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r8653 r8670  
    550550            $enabled = ( $downsize[3] || 'full' == $size ); 
    551551            $css_id = "image-size-{$size}-{$post->ID}"; 
     552            // if this size is the default but that's not available, don't select it 
     553            if ( $checked && !$enabled ) 
     554                $checked = ''; 
    552555            // if $checked was not specified, default to the first available size that's bigger than a thumbnail 
    553556            if ( !$checked && $enabled && 'thumbnail' != $size ) 
Note: See TracChangeset for help on using the changeset viewer.