WordPress.org

Make WordPress Core

Ticket #18764: 18764-with-classes.diff

File 18764-with-classes.diff, 1.8 KB (added by jaredh123, 7 years ago)
  • wp-admin/includes/media.php

     
    13781378<?php do_action('post-html-upload-ui'); ?>
    13791379</div>
    13801380
    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'); }
    13841382
    1385 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');
    1386 ?></p>
    1387 
    1388 <?php
    1389         do_action('post-upload-ui');
    1390 }
    1391 
    13921383/**
    13931384 * {@internal Missing Short Description}}
    13941385 *
     
    20552046add_action('post-html-upload-ui', 'media_upload_html_bypass');
    20562047
    20572048/**
     2049 * Display maximum upload file size
     2050 *
     2051 * @since 3.3
     2052 */
     2053function 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}
     2062add_action('post-upload-ui', 'media_upload_max_file_size_message');
     2063
     2064/**
    20582065 * {@internal Missing Short Description}}
    20592066 *
    20602067 * @since 2.6.0