[wp-trac] [WordPress Trac] #15256: ?cat=## permalinks do not redirect when category is a parent

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 19 07:23:26 UTC 2011


#15256: ?cat=## permalinks do not redirect when category is a parent
-------------------------------------+-----------------------
 Reporter:  froman118                |       Owner:
     Type:  defect (bug)             |      Status:  reopened
 Priority:  high                     |   Milestone:  3.3
Component:  Canonical                |     Version:  3.0.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------

Comment (by dd32):

 > attachment 15256.2.diff  added

 Yet another shot at the root cause. Took the line of parsing 'cat' to it's
 own tax query rather than piggybacking on `category__in`. Doesn't appear
 to regress anything that I can see, If a query is using both 'cat' and
 `'category__in'` that'll result in 2 queries in WP_Tax_Query (unless it
 rolls same/similar queries into one)

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


More information about the wp-trac mailing list