WordPress.org

Make WordPress Core

Changeset 19405


Ignore:
Timestamp:
11/22/11 21:25:55 (2 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19399 r19405  
    583583 */ 
    584584function wp_admin_bar_search_menu( $wp_admin_bar ) { 
    585     $form  = '<form action="' . home_url() . '" method="get" id="adminbarsearch">'; 
     585    $form  = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">'; 
    586586    $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" '; 
    587587    $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" />'; 
Note: See TracChangeset for help on using the changeset viewer.