mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791
git-svn-id: https://develop.svn.wordpress.org/trunk@11312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -119,7 +119,7 @@ function get_search_form() {
|
||||
return;
|
||||
|
||||
$form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" >
|
||||
<div><label class="invisible" for="s">' . __('Search for:') . '</label>
|
||||
<div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
|
||||
<input type="text" value="' . esc_attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" />
|
||||
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user