Media Library: Add a label for attachment type select in list mode.

props afercia.
fixes #31795.

git-svn-id: https://develop.svn.wordpress.org/trunk@31942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-03-31 19:56:08 +00:00
parent 0d55562fd7
commit dcc75b1202
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ class WP_Media_List_Table extends WP_List_Table {
<div class="filter-items">
<?php $this->view_switcher( $mode ); ?>
<select class="attachment-filters" name="attachment-filter">
<label for="attachment-filter" class="screen-reader-text"><?php _e( 'Filter by type' ); ?></label>
<select class="attachment-filters" name="attachment-filter" id="attachment-filter">
<?php
if ( ! empty( $views ) ) {
foreach ( $views as $class => $view ) {