Ticket #18764: 18764-with-classes.diff
File 18764-with-classes.diff, 1.8 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/media.php
1378 1378 <?php do_action('post-html-upload-ui'); ?> 1379 1379 </div> 1380 1380 1381 <p><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); 1382 if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) 1383 echo ' <span class="big-file-warning">' . __('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.') . '</span></p><p>'; 1381 <?php do_action('post-upload-ui'); } 1384 1382 1385 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');1386 ?></p>1387 1388 <?php1389 do_action('post-upload-ui');1390 }1391 1392 1383 /** 1393 1384 * {@internal Missing Short Description}} 1394 1385 * … … 2055 2046 add_action('post-html-upload-ui', 'media_upload_html_bypass'); 2056 2047 2057 2048 /** 2049 * Display maximum upload file size 2050 * 2051 * @since 3.3 2052 */ 2053 function media_upload_max_file_size_message() { 2054 ?> 2055 <p class="max-file-size"><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); 2056 if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) 2057 echo ' <span class="big-file-warning">' . __('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.') . '</span></p><p class="post-upload-options">'; 2058 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.'); ?> 2059 </p> 2060 <?php 2061 } 2062 add_action('post-upload-ui', 'media_upload_max_file_size_message'); 2063 2064 /** 2058 2065 * {@internal Missing Short Description}} 2059 2066 * 2060 2067 * @since 2.6.0