Make WordPress Core

Changeset 29295


Ignore:
Timestamp:
07/25/2014 12:25:16 AM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: change text to "Close Media Panel" to provide context for screen readers.

Props joedolson.
Fixes #28976.

File:
1 edited

Legend:

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

    r29289 r29295  
    141141    <script type="text/html" id="tmpl-media-modal">
    142142        <div class="<?php echo $class; ?>">
    143             <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
     143            <a class="media-modal-close" href="#"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></a>
    144144            <div class="media-modal-content"></div>
    145145        </div>
Note: See TracChangeset for help on using the changeset viewer.