Make WordPress Core


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

Revert media.php too, see #19174

File:
1 edited

Legend:

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

    r19223 r19226  
    19851985}
    19861986
     1987/**
     1988 * {@internal Missing Short Description}}
     1989 *
     1990 * @since 2.6.0
     1991 */
     1992function 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
    19872011add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
    19882012add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.