WordPress.org

Make WordPress Core

Ticket #18881: 18881.4.patch

File 18881.4.patch, 1.7 KB (added by ocean90, 10 years ago)
  • wp-admin/includes/media.php

     
    19891989 * @since 2.6.0
    19901990 */
    19911991function media_upload_max_image_resize() {
    1992         $checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
    19931992?>
    19941993<p class="hide-if-no-js"><label>
    1995 <input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
     1994<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php checked( get_user_setting('upload_resize'), 1 ); ?> />
    19961995<?php
    1997 if ( current_user_can( 'manage_options' ) )
    1998         printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
    1999 else
     1996if ( current_user_can( 'manage_options' ) ) {
     1997        /* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
     1998        printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">', '</a>', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
     1999} else {
     2000        /* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
    20002001        printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), '', '', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
     2002}
    20012003?>
    20022004</label></p>
    20032005<?php