Widget Customizer: Add a label to widget search.
props SergeyBiryukov. fixes #27590. Built from https://develop.svn.wordpress.org/trunk@27860 git-svn-id: http://core.svn.wordpress.org/trunk@27691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f9713104b
commit
da5339da30
|
@ -604,7 +604,8 @@ final class WP_Customize_Widgets {
|
|||
<div id="widgets-left"><!-- compatibility with JS which looks for widget templates here -->
|
||||
<div id="available-widgets">
|
||||
<div id="available-widgets-filter">
|
||||
<input type="search" placeholder="<?php esc_attr_e( 'Find widgets…' ) ?>">
|
||||
<label class="screen-reader-text" for="widgets-search"><?php _e( 'Find Widgets' ); ?></label>
|
||||
<input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Find widgets…' ) ?>" />
|
||||
</div>
|
||||
<?php foreach ( $this->get_available_widgets() as $available_widget ): ?>
|
||||
<div id="widget-tpl-<?php echo esc_attr( $available_widget['id'] ) ?>" data-widget-id="<?php echo esc_attr( $available_widget['id'] ) ?>" class="widget-tpl <?php echo esc_attr( $available_widget['id'] ) ?>" tabindex="0">
|
||||
|
|
Loading…
Reference in New Issue