Make WordPress Core


Ignore:
Timestamp:
08/07/2014 05:19:14 AM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: add screen reader labels with more context to filters and bulk actions. Ditto for list view.

Props afercia.
Fixes #29026.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r29423 r29428  
    372372            return;
    373373
    374         echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select Bulk Action' ) . "</label>";
     374        echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select bulk action' ) . "</label>";
    375375        echo "<select name='action$two' id='bulk-action-selector-" . esc_attr( $which ) . "'>\n";
    376376        echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
     
    470470        $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
    471471?>
    472         <select name="m">
     472        <label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label>
     473        <select name="m" id="filter-by-date">
    473474            <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
    474475<?php
Note: See TracChangeset for help on using the changeset viewer.