Revert changes to canonical that broke redirects. Props fitztrev. fixes #5961
git-svn-id: https://develop.svn.wordpress.org/trunk@6998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
34e40f0dab
commit
4bab767fe2
@ -178,12 +178,6 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
if ( strtolower($original['host']) == strtolower($redirect['host']) )
|
||||
$redirect['host'] = $original['host'];
|
||||
|
||||
// prevent notices in the comparison below
|
||||
$original['query'] = isset($redirect['query'])? $redirect['query'] : false;
|
||||
$original['port'] = isset($redirect['port'])? $redirect['port'] : false;
|
||||
$redirect['query'] = isset($redirect['query'])? $redirect['query'] : false;
|
||||
$redirect['port'] = isset($redirect['port'])? $redirect['port'] : false;
|
||||
|
||||
if ( array($original['host'], $original['port'], $original['path'], $original['query']) !== array($redirect['host'], $redirect['port'], $redirect['path'], $redirect['query']) ) {
|
||||
$redirect_url = $redirect['scheme'] . '://' . $redirect['host'];
|
||||
if ( isset($redirect['port']) )
|
||||
|
Loading…
Reference in New Issue
Block a user