Because we can. see #18034.

git-svn-id: https://develop.svn.wordpress.org/trunk@19406 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-11-22 21:27:27 +00:00
parent 38eae35be6
commit 3316f10905
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') .'" />