Make WordPress Core


Ignore:
Timestamp:
08/02/2014 02:13:06 PM (11 years ago)
Author:
ocean90
Message:

Media Upload: Improve styling of error messages.

props afercia, michalzuber.
fixes #29047.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r29206 r29355  
    8787$id = media_handle_upload( 'async-upload', $post_id );
    8888if ( is_wp_error($id) ) {
    89     echo '<div class="error-div">
     89    echo '<div class="error-div error">
    9090    <a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __('Dismiss') . '</a>
    9191    <strong>' . sprintf(__('&#8220;%s&#8221; has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '</strong><br />' .
Note: See TracChangeset for help on using the changeset viewer.