Don't default to an unselectable image size. Props tellyworth. fixes #7528 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c26e7cff13
commit
c1f57342f3
@ -549,6 +549,9 @@ function image_size_input_fields($post, $checked='') {
|
||||
// is this size selectable?
|
||||
$enabled = ( $downsize[3] || 'full' == $size );
|
||||
$css_id = "image-size-{$size}-{$post->ID}";
|
||||
// if this size is the default but that's not available, don't select it
|
||||
if ( $checked && !$enabled )
|
||||
$checked = '';
|
||||
// if $checked was not specified, default to the first available size that's bigger than a thumbnail
|
||||
if ( !$checked && $enabled && 'thumbnail' != $size )
|
||||
$checked = $size;
|
||||
|
Loading…
Reference in New Issue
Block a user