WordPress.org

Make WordPress Core

Changeset 29870


Ignore:
Timestamp:
10/11/2014 02:20:05 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Add missing labels to category filter dropdowns.

props afercia.
fixes #29921.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r29707 r29870  
    7979                'orderby' => 'name',
    8080            );
     81
     82            echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
    8183            wp_dropdown_categories( $dropdown_options );
    8284            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r29757 r29870  
    236236                    'selected' => $cat
    237237                );
     238
     239                echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) . '</label>';
    238240                wp_dropdown_categories( $dropdown_options );
    239241            }
Note: See TracChangeset for help on using the changeset viewer.