[wp-trac] [WordPress Trac] #20767: tax_query clobbers tag and category

WordPress Trac noreply at wordpress.org
Sat Dec 14 18:33:02 UTC 2013


#20767: tax_query clobbers tag and category
------------------------------+-----------------------------
 Reporter:  wonderboymusic    |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.8
Component:  Query             |     Version:  3.1
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+-----------------------------

Comment (by Otto42):

 Specifically, on a default install with pretty permalinks, when you visit
 /category/uncategorized, then the 'cat' variable is not set.

 Instead, the category_name is 'uncategorized', and there is a tax_query
 with
 'category' as the taxonomy and 'uncategorized' as the term. You cannot
 only use get('cat') here. This probably breaks tags in a similar way for
 the same reasons.

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


More information about the wp-trac mailing list