Make WordPress Core


Ignore:
Timestamp:
07/10/2014 11:05:05 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: make the Uploader closable.

Props ericlewis.
See #24716.

File:
1 edited

Legend:

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

    r29078 r29082  
    161161    <script type="text/html" id="tmpl-uploader-inline">
    162162        <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
     163        <# if ( data.canClose ) { #>
     164        <button class="close dashicons dashicons-no"><span class="screen-reader-text">Close overlay</span></button>
     165        <# } #>
    163166        <div class="uploader-inline-content {{ messageClass }}">
    164167        <# if ( data.message ) { #>
Note: See TracChangeset for help on using the changeset viewer.