get_search_form() fixes from juergen. fixes #8512

git-svn-id: http://svn.automattic.com/wordpress/trunk@10100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-07 05:09:47 +00:00
parent b455fc3845
commit 7050ada441
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>';