Make WordPress Core


Ignore:
Timestamp:
11/17/2021 03:54:40 PM (3 years ago)
Author:
joedolson
Message:

Media: Move dismiss upload errors button after errors.

Change the button that dismissess upload errors so it appears after the relevant errors. Change button from icon-only to text-based. Removes ambiguity about what you are cancelling when using the control.

Props ComputerGuru, melchoyce, vdwijngaert, alexislloyd, joedolson, shaunandrews, sabernhardt.
Fixes #42979.

File:
1 edited

Legend:

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

    r52171 r52196  
    321321    <script type="text/html" id="tmpl-uploader-status">
    322322        <h2><?php _e( 'Uploading' ); ?></h2>
    323         <button type="button" class="button-link upload-dismiss-errors"><span class="screen-reader-text"><?php _e( 'Dismiss Errors' ); ?></span></button>
    324323
    325324        <div class="media-progress-bar"><div></div></div>
     
    332331        </div>
    333332        <div class="upload-errors"></div>
     333        <button type="button" class="button upload-dismiss-errors"><?php _e( 'Dismiss errors' ); ?></button>
    334334    </script>
    335335
Note: See TracChangeset for help on using the changeset viewer.