Just some indent fixes in canonical.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6111 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d12c48818
commit
2b72a424fc
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user