WordPress.org

Make WordPress Core

Changeset 19384


Ignore:
Timestamp:
11/21/2011 08:46:15 PM (7 years ago)
Author:
azaozz
Message:

Output the "After a file has been uploaded..." message by using the post-upload-ui action, fixes #18764

File:
1 edited

Legend:

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

    r19350 r19384  
    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>';
    1384 
    1385 echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');
    1386 ?></p>
    1387 
     1381<span class="max-upload-size"><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); ?></span>
    13881382<?php
     1383if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) { ?>
     1384    <span class="big-file-warning"><?php _e('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.'); ?></span>
     1385<?php }
     1386
    13891387    do_action('post-upload-ui');
    13901388}
     
    20382036    <?php
    20392037}
     2038add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
    20402039
    20412040/**
     
    20512050    <?php
    20522051}
    2053 
    2054 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
    20552052add_action('post-html-upload-ui', 'media_upload_html_bypass');
     2053
     2054function media_upload_text_after() {
     2055    ?>
     2056    <span class="after-file-upload"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></span>
     2057    <?php
     2058}
     2059add_action('post-upload-ui', 'media_upload_text_after', 5);
    20562060
    20572061/**
Note: See TracChangeset for help on using the changeset viewer.