WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2012 06:01:22 PM (8 years ago)
Author:
ryan
Message:

Add screen reader text to checkboxes in list tables. Props MikeLittle, nacin. see #21325

File:
1 edited

Legend:

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

    r21162 r21317  
    192192        <th scope="row" class="check-column">
    193193            <?php if ( $user_can_edit ) { ?>
    194                 <input type="checkbox" name="media[]" value="<?php the_ID(); ?>" />
     194                <label for="cb-select-<?php the_ID(); ?>" class="screen-reader-text"><?php echo sprintf( __( 'Select %s' ), $att_title );?></label>
     195                <input type="checkbox" name="media[]" id="cb-select-<?php the_ID(); ?>" value="<?php the_ID(); ?>" />
    195196            <?php } ?>
    196197        </th>
Note: See TracChangeset for help on using the changeset viewer.