mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
git-svn-id: https://develop.svn.wordpress.org/trunk@22556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec11387b66
commit
e0df0a74ca
@ -1587,19 +1587,25 @@ function wp_print_media_templates( $attachment ) {
|
||||
'thumbnail' => __('Thumbnail'),
|
||||
'medium' => __('Medium'),
|
||||
'large' => __('Large'),
|
||||
'full' => __('Full Size'),
|
||||
) );
|
||||
|
||||
foreach ( $sizes as $value => $name ) : ?>
|
||||
foreach ( $sizes as $value => $name ) :
|
||||
if ( 'full' === $name )
|
||||
continue;
|
||||
?>
|
||||
<# if ( sizes['<?php echo esc_js( $value ); ?>'] ) { #>
|
||||
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'medium' ); ?>>
|
||||
<?php echo esc_html( $name ); ?>
|
||||
</option>
|
||||
<# } #>>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach;
|
||||
|
||||
<option value="full">
|
||||
<?php echo esc_html_e( 'Full Size' ); ?>
|
||||
</option>
|
||||
if ( ! empty( $sizes['full'] ) ) : ?>
|
||||
<option value="full">
|
||||
<?php echo esc_html( $sizes['full'] ); ?>
|
||||
</option>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
</label>
|
||||
<# } #>
|
||||
|
Loading…
x
Reference in New Issue
Block a user