Trailing slash home_url() for the form action for admin bar search. props SergeyBiryukov. Escape too. fixes #18034 for 3.3.

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

View File

@ -582,7 +582,7 @@ function wp_admin_bar_updates_menu( $wp_admin_bar ) {
* @since 3.3.0
*/
function wp_admin_bar_search_menu( $wp_admin_bar ) {
$form = '<form action="' . home_url() . '" method="get" id="adminbarsearch">';
$form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">';
$form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" ';
$form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" />';
$form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';