Make WordPress Core


Ignore:
Timestamp:
07/13/2014 11:04:21 AM (11 years ago)
Author:
ocean90
Message:

Lists View Switcher: Replace blank image with screen reader text.

props davidakennedy.
fixes #28871.

File:
1 edited

Legend:

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

    r29106 r29133  
    226226    <script type="text/html" id="tmpl-media-library-view-switcher">
    227227        <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-list">
    228             <img id="view-switch-list" src="<?php echo includes_url( 'images/blank.gif' ) ?>" width="20" height="20" title="List View" alt="List View"/>
     228            <span class="screen-reader-text"><?php _e( 'List View' ); ?></span>
    229229        </a>
    230230        <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-grid current">
    231             <img id="view-switch-excerpt" src="<?php echo includes_url( 'images/blank.gif' ) ?>" width="20" height="20" title="Grid View" alt="Grid View"/>
     231            <span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span>
    232232        </a>
    233233    </script>
Note: See TracChangeset for help on using the changeset viewer.