Changeset 18922
- Timestamp:
- 10/08/2011 03:14:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r18918 r18922 1991 1991 function media_upload_max_image_resize() { 1992 1992 $checked = get_user_setting('upload_resize') ? ' checked="true"' : ''; 1993 $a = $end = ''; 1994 1995 if ( current_user_can( 'manage_options' ) ) { 1996 $a = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">'; 1997 $end = '</a>'; 1998 } 1993 1999 ?> 1994 2000 <p class="hide-if-no-js"><label> 1995 2001 <input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> /> 1996 2002 <?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 × %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 2000 printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), '', '', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) ); 2003 /* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/ 2004 printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) ); 2001 2005 ?> 2002 2006 </label></p>
Note: See TracChangeset
for help on using the changeset viewer.