Make WordPress Core

Ticket #18034: 18034.3.patch

File 18034.3.patch, 1.9 KB (added by SergeyBiryukov, 13 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 ) {
  • wp-includes/link-template.php

     
    13861386
    13871387        $home_root = parse_url(home_url());
    13881388        $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : '';
    1389         $home_root = preg_quote( trailingslashit( $home_root ), '|' );
     1389        $home_root = preg_quote( $home_root, '|' );
    13901390
    13911391        $request = preg_replace('|^'. $home_root . '|', '', $request);
    13921392        $request = preg_replace('|^/+|', '', $request);