Make WordPress Core


Ignore:
Timestamp:
11/22/2012 10:56:10 AM (12 years ago)
Author:
koopersmith
Message:

Media: Display WordPress and plupload error messages whenever an upload fails. see #22243, #22186, #21390.

File:
1 edited

Legend:

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

    r22817 r22818  
    15041504    <script type="text/html" id="tmpl-uploader-status">
    15051505        <h3><?php _e( 'Uploading' ); ?></h3>
     1506        <a class="upload-dismiss-errors" href="#"><?php _e('Dismiss Errors'); ?></a>
     1507
    15061508        <div class="media-progress-bar"><div></div></div>
    15071509        <div class="upload-details">
     
    15141516        <div class="upload-errors">
    15151517        </div>
     1518    </script>
     1519
     1520    <script type="text/html" id="tmpl-uploader-status-error">
     1521        <span class="upload-error-label"><?php _e('Error'); ?></span>
     1522        <span class="upload-error-filename">{{{ data.filename }}}</span>
     1523        <span class="upload-error-message">{{ data.message }}</span>
    15161524    </script>
    15171525
Note: See TracChangeset for help on using the changeset viewer.