Add WAI-ARIA landmark roles to default theme. Props peterkz. fixes #9408

git-svn-id: http://svn.automattic.com/wordpress/trunk@10945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-04-16 16:42:32 +00:00
parent 02c77b8576
commit 08ae2f5ee2
9 changed files with 17 additions and 14 deletions

View File

@@ -118,7 +118,7 @@ function get_search_form() {
if ( '' != locate_template(array('searchform.php'), true) )
return;
$form = '<form method="get" id="searchform" action="' . get_option('home') . '/" >
$form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" >
<div><label class="hidden" for="s">' . __('Search for:') . '</label>
<input type="text" value="' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="'.attribute_escape(__('Search')).'" />