Add missing labels to category filter dropdowns.
props afercia. fixes #29921. git-svn-id: https://develop.svn.wordpress.org/trunk@29870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f7dbf962d7
commit
8d2f5d0cc5
@ -78,6 +78,8 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||
'show_count' => 0,
|
||||
'orderby' => 'name',
|
||||
);
|
||||
|
||||
echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
|
||||
wp_dropdown_categories( $dropdown_options );
|
||||
submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||
?>
|
||||
|
@ -235,6 +235,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
'orderby' => 'name',
|
||||
'selected' => $cat
|
||||
);
|
||||
|
||||
echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) . '</label>';
|
||||
wp_dropdown_categories( $dropdown_options );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user