Because we can. see #18034.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-22 21:27:27 +00:00
parent 6f18d8e035
commit b4debb9648
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ function get_search_form($echo = true) {
return;
}
$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
$form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '" >
<div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />