Make WordPress Core


Ignore:
Timestamp:
02/24/2008 02:09:24 AM (17 years ago)
Author:
ryan
Message:

Revert changes to canonical that broke redirects. Props fitztrev. fixes #5961

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/canonical.php

    r6983 r6998  
    179179        $redirect['host'] = $original['host'];
    180180
    181     // prevent notices in the comparison below
    182     $original['query'] = isset($redirect['query'])? $redirect['query'] : false;
    183     $original['port'] = isset($redirect['port'])? $redirect['port'] : false;
    184     $redirect['query'] = isset($redirect['query'])? $redirect['query'] : false;
    185     $redirect['port'] = isset($redirect['port'])? $redirect['port'] : false;
    186 
    187181    if ( array($original['host'], $original['port'], $original['path'], $original['query']) !== array($redirect['host'], $redirect['port'], $redirect['path'], $redirect['query']) ) {
    188182        $redirect_url = $redirect['scheme'] . '://' . $redirect['host'];
Note: See TracChangeset for help on using the changeset viewer.