[wp-trac] [WordPress Trac] #16627: Rewrite query vars are stripped from custom taxonomy page URLs via redirect_canonical()

WordPress Trac wp-trac at lists.automattic.com
Mon May 2 11:05:07 UTC 2011


#16627: Rewrite query vars are stripped from custom taxonomy page URLs via
redirect_canonical()
--------------------------+-----------------------
 Reporter:  gnoodl        |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.2
Component:  Canonical     |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by joehoyle):

 With the re-instated patch, term URLs are not canonicalized (though they
 probably weren't before). If you are using pretty permalinks, then the
 `$redirect['query']` will never be set (looking at
 http://core.trac.wordpress.org/browser/tags/3.1.2/wp-
 includes/canonical.php#L153).

 This means if the `$tax_url` is different to the current URL, it will not
 be redirected. E.g. `/tag/Apple/` should redirect to `/tag/apple/`, but
 won't be. Removing the `$redirect['query']` check fixes the canonical
 redirect in my case.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16627#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list