WordPress.org

Make WordPress Core

Ticket #18034: 18034.2.patch

File 18034.2.patch, 1.4 KB (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') . '"/>'; 
  • wp-includes/canonical.php

     
    3737function redirect_canonical( $requested_url = null, $do_redirect = true ) { 
    3838        global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 
    3939 
    40         if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || $is_IIS ) 
     40        if ( is_trackback() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || $is_IIS ) 
    4141                return; 
    4242 
    4343        if ( !$requested_url ) {