WordPress.org

Make WordPress Core

Ticket #8975: canonical.diff

File canonical.diff, 478 bytes (added by wnorris, 9 years ago)
  • canonical.php

     
    279279                        $redirect_url .= '?' . $redirect['query'];
    280280        }
    281281
    282         if ( !$redirect_url || $redirect_url == $requested_url )
     282        if ( $redirect_url == $requested_url )
    283283                return false;
    284284
    285285        // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE