Make WordPress Core


Ignore:
Timestamp:
12/04/2012 04:04:45 AM (13 years ago)
Author:
nacin
Message:

Media: When an image does not have all image sizes available, make sure we insert the requested size into the editor. props koopersmith. fixes #22693.

File:
1 edited

Legend:

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

    r23006 r23008  
    18261826                        var size = data.sizes['<?php echo esc_js( $value ); ?>'];
    18271827                        if ( size ) { #>
    1828                             <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'medium' ); ?>>
     1828                            <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
    18291829                                <?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
    18301830                            </option>
    1831                         <# } #>>
     1831                        <# } #>
    18321832                    <?php endforeach; ?>
    18331833                </select>
Note: See TracChangeset for help on using the changeset viewer.