Ticket #18034: 18034.3.patch
File 18034.3.patch, 1.9 KB (added by , 13 years ago) |
---|
-
wp-includes/admin-bar.php
768 768 */ 769 769 function wp_admin_bar_search_menu( $wp_admin_bar ) { 770 770 $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">'; 772 772 $form .= '<input class="adminbar-input" name="s" id="adminbar-search"'; 773 773 $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" />'; 774 774 $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>'; -
wp-includes/canonical.php
37 37 function redirect_canonical( $requested_url = null, $do_redirect = true ) { 38 38 global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 39 39 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 ) 41 41 return; 42 42 43 43 if ( !$requested_url ) { -
wp-includes/link-template.php
1386 1386 1387 1387 $home_root = parse_url(home_url()); 1388 1388 $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : ''; 1389 $home_root = preg_quote( trailingslashit( $home_root ), '|' );1389 $home_root = preg_quote( $home_root, '|' ); 1390 1390 1391 1391 $request = preg_replace('|^'. $home_root . '|', '', $request); 1392 1392 $request = preg_replace('|^/+|', '', $request);