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:
Sergey Biryukov 2014-10-11 02:20:05 +00:00
parent f7dbf962d7
commit 8d2f5d0cc5
2 changed files with 4 additions and 0 deletions

View File

@ -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' ) );
?>

View File

@ -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 );
}