Make WordPress Core


Ignore:
Timestamp:
06/28/2015 05:45:49 AM (10 years ago)
Author:
SergeyBiryukov
Message:

List tables: Select All should not be a column header.

It sets a redundant relationship with all checkboxes in its column and also conveys wrong information for screen readers.

props afercia, valendesigns.
see #31654.

File:
1 edited

Legend:

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

    r32948 r32984  
    994994            }
    995995
     996            $tag = ( 'cb' === $column_key ) ? 'td' : 'th';
     997            $scope = ( 'th' === $tag ) ? 'scope="col"' : '';
    996998            $id = $with_id ? "id='$column_key'" : '';
    997999
     
    9991001                $class = "class='" . join( ' ', $class ) . "'";
    10001002
    1001             echo "<th scope='col' $id $class>$column_display_name</th>";
     1003            echo "<$tag $scope $id $class>$column_display_name</$tag>";
    10021004        }
    10031005    }
Note: See TracChangeset for help on using the changeset viewer.