Make WordPress Core

Ticket #28976: 28976.patch

File 28976.patch, 711 bytes (added by joedolson, 10 years ago)

Provide context for close; move to screen reader text

  • wp-includes/media-template.php

     
    140140
    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 esc_attr_e('Close Media Panel'); ?></span></span></a>
    144144                        <div class="media-modal-content"></div>
    145145                </div>
    146146                <div class="media-modal-backdrop"></div>