WordPress.org

Make WordPress Core

Ticket #18881: 18881.patch

File 18881.patch, 1.2 KB (added by SergeyBiryukov, 10 years ago)
  • wp-admin/includes/media.php

     
    19931993?>
    19941994<p class="hide-if-no-js"><label>
    19951995<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
    1996 <?php _e('Scale images to match the large size selected in'); ?> <a href="options-media.php" target="_blank"><?php _e('image options'); ?></a> <?php printf( __('(%1$d &times; %2$d).'), (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) ); ?>
     1996<?php
     1997if ( current_user_can( 'manage_options' ) )
     1998        printf( __( 'Scale images to match the large size selected in %1$s (%2$d &times; %3$d).' ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">' . __( 'image options' ) . '</a>', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
     1999else
     2000        printf( __( 'Scale images to match the large size selected in %1$s (%2$d &times; %3$d).' ), __( 'image options' ), (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
     2001?>
    19972002</label></p>
    19982003<?php
    19992004}