Escape title in HTML5 search form. props obenland, joostdevalk, scottsweb. fixes #25322.
Built from https://develop.svn.wordpress.org/trunk@25710 git-svn-id: http://core.svn.wordpress.org/trunk@25624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2413462de
commit
1863c06879
|
@ -172,7 +172,7 @@ function get_search_form( $echo = true ) {
|
|||
$form = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
|
||||
<label>
|
||||
<span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span>
|
||||
<input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" />
|
||||
<input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x( 'Search for:', 'label' ) . '" />
|
||||
</label>
|
||||
<input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
|
||||
</form>';
|
||||
|
|
Loading…
Reference in New Issue