[wp-trac] [WordPress Trac] #18752: Allow category preference in permalinks

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 21 18:38:49 UTC 2012


#18752: Allow category preference in permalinks
------------------------------+------------------
 Reporter:  aaroncampbell     |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.5
Component:  General           |     Version:  3.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by aaroncampbell):

 Thea reason it isn't canonically redirected is that when it finds that the
 category is NOT one of the post terms, it uses `get_permalink()` to
 generate the URL to redirect to.  Since our filter applies to that URL as
 well, toward the end of `redirect_canonical()` it checks `$redirect_url ==
 $requested_url` and returns false instead of redirecting.

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


More information about the wp-trac mailing list