[wp-trac] [WordPress Trac] #18636: is_tax() returns false when is_category() returns true
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 11 00:32:01 UTC 2011
#18636: is_tax() returns false when is_category() returns true
--------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.3
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Categories are a taxonomy and yet `is_tax()` only returns `true` for
custom taxonomies and not for tags and categories.
`is_tax()` should return true for them and if people want the old weird
functionality, then they can pass a taxonomy name to `is_tax()` or just
make sure both `is_category()` and `is_tag()` are false.
The offending code looks to be in `WP_Query::parse_query()` where it loops
over `$this->tax_query->queries`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18636>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list