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

Props joedolson.
Fixes #28976.

Built from https://develop.svn.wordpress.org/trunk@29295


git-svn-id: http://core.svn.wordpress.org/trunk@29077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-07-25 00:26:15 +00:00
parent 97fff7e952
commit 97604df447

View File

@ -140,7 +140,7 @@ function wp_print_media_templates() {
<script type="text/html" id="tmpl-media-modal">
<div class="<?php echo $class; ?>">
<a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
<a class="media-modal-close" href="#"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></a>
<div class="media-modal-content"></div>
</div>
<div class="media-modal-backdrop"></div>