Make WordPress Core


Ignore:
Timestamp:
11/08/2011 10:23:40 PM (13 years ago)
Author:
azaozz
Message:

Remove the Resize files checkbox for now (revisit in 3.4), fixes #19174

File:
1 edited

Legend:

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

    r19181 r19223  
    19851985}
    19861986
    1987 /**
    1988  * {@internal Missing Short Description}}
    1989  *
    1990  * @since 2.6.0
    1991  */
    1992 function media_upload_max_image_resize() {
    1993     $checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
    1994     $a = $end = '';
    1995 
    1996     if ( current_user_can( 'manage_options' ) ) {
    1997         $a = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
    1998         $end = '</a>';
    1999     }
    2000 ?>
    2001 <p class="hide-if-no-js"><label>
    2002 <input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
    2003 <?php
    2004     /* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
    2005     printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );
    2006 ?>
    2007 </label></p>
    2008 <?php
    2009 }
    2010 
    2011 add_action( 'post-upload-ui', 'media_upload_max_image_resize' );
    2012 
    20131987add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
    20141988add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.