Ticket #18764: 18764.diff
File 18764.diff, 1.9 KB (added by , 14 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>';1384 1385 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');1386 ?></p>1387 1388 1381 <?php 1389 do_action('post-upload-ui' );1382 do_action('post-upload-ui', $max_upload_size, $upload_size_unit, $sizes, $u); 1390 1383 } 1391 1384 1392 1385 /** … … 2054 2047 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 2055 2048 add_action('post-html-upload-ui', 'media_upload_html_bypass'); 2056 2049 2050 /** 2051 * Display maximum upload file size 2052 * 2053 * @since 3.3 2054 */ 2055 function media_upload_max_file_size_message($max_upload_size, $upload_size_unit, $sizes, $u) { 2056 global $is_IE, $is_opera; 2057 ?> 2058 <p><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); 2059 if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) 2060 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>'; 2061 echo ' ' . apply_filters('media_upload_title_and_description_message', __('After a file has been uploaded, you can add titles and descriptions.')); ?> 2062 </p> 2063 <?php 2064 } 2065 add_action('post-upload-ui', 'media_upload_max_file_size_message', 10, 4); 2066 2057 2067 /** 2058 2068 * {@internal Missing Short Description}} 2059 2069 *