WordPress.org

Make WordPress Core

Ticket #18034: 18034.patch

File 18034.patch, 754 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/admin-bar.php

     
    768768 */ 
    769769function wp_admin_bar_search_menu( $wp_admin_bar ) { 
    770770        $form  = '<div id="adminbarsearch-wrap">'; 
    771         $form .= '<form action="' . home_url() . '" method="get" id="adminbarsearch">'; 
     771        $form .= '<form action="' . home_url( '/' ) . '" method="get" id="adminbarsearch">'; 
    772772        $form .= '<input class="adminbar-input" name="s" id="adminbar-search"'; 
    773773        $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" />'; 
    774774        $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';