Make WordPress Core


Ignore:
Timestamp:
11/14/2011 11:21:16 PM (14 years ago)
Author:
azaozz
Message:

Add big-file-upload-warning for IE and Opera, left-align the percentage in the progress bar, see #19228

File:
1 edited

Legend:

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

    r19275 r19286  
    12641264 */
    12651265function media_upload_form( $errors = null ) {
    1266     global $type, $tab, $pagenow;
     1266    global $type, $tab, $pagenow, $is_IE, $is_opera;
    12671267
    12681268    $upload_action_url = admin_url('async-upload.php');
     
    13681368
    13691369<p><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) );
    1370 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.'); ?></p>
     1370if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 )
     1371        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>';
     1372
     1373echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');
     1374?></p>
    13711375
    13721376<?php
Note: See TracChangeset for help on using the changeset viewer.