Toolbar: Add a label for search field on front-end.
props afercia. fixes #31323. git-svn-id: https://develop.svn.wordpress.org/trunk@31455 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fc35ef690b
commit
35ae49f843
@ -795,6 +795,7 @@ function wp_admin_bar_search_menu( $wp_admin_bar ) {
|
||||
|
||||
$form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">';
|
||||
$form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
|
||||
$form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>';
|
||||
$form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';
|
||||
$form .= '</form>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user