diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 2d0e5b7c89..c60b38dbca 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -89,17 +89,17 @@ function redirect_canonical($requested_url=NULL, $do_redirect=true) { } } -// tack on any additional query vars -if ( $redirect_url && $redirect['query'] ) { - if ( strpos($redirect_url, '?') !== false ) - $redirect_url .= '&'; - else - $redirect_url .= '?'; - $redirect_url .= $redirect['query']; -} + // tack on any additional query vars + if ( $redirect_url && $redirect['query'] ) { + if ( strpos($redirect_url, '?') !== false ) + $redirect_url .= '&'; + else + $redirect_url .= '?'; + $redirect_url .= $redirect['query']; + } -if ( $redirect_url ) - $redirect = @parse_url($redirect_url); + if ( $redirect_url ) + $redirect = @parse_url($redirect_url); // www.example.com vs example.com $user_home = @parse_url(get_option('home'));