get_search_form() fixes from juergen. fixes #8512

git-svn-id: https://develop.svn.wordpress.org/trunk@10100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-07 05:09:47 +00:00
parent 6478fa841c
commit 79ed97571c
1 changed files with 2 additions and 2 deletions

View File

@ -108,9 +108,9 @@ function get_search_form() {
if ( '' != locate_template(array('searchform.php'), true) )
return;
$form = '<form method="get" id="searchform" action="' . get_option('siteurl') . '/" >
$form = '<form method="get" id="searchform" action="' . get_option('home') . '/" >
<label class="hidden" for="s">' . __('Search for:') . '</label>
<div><input type="text" value="' . the_search_query() . '" name="s" id="s" />
<div><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')).'" />
</div>
</form>';