[wp-trac] [WordPress Trac] #20767: tax_query clobbers tag and category
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 27 15:35:55 UTC 2012
#20767: tax_query clobbers tag and category
----------------------------+------------------------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.1
Severity: major | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Comment (by wonderboymusic):
Replying to [comment:1 scribu]:
> I'm not sure using `$this->get( 'cat' )` is much better: you can have
`?cat=1,2,-3`.
It works, if you have a URL like so: www.emusic.com/17dots/topics/daily-
download/?cat=1,2,3,4
* is_tag is true
* is_category is true
* cat returns 1 (the first category id)
* tag_id returns 8376, which is correct
The public query is correct:
{{{
array(2) {
'cat' =>
string(7) "1,2,3,4"
'tag' =>
string(14) "daily-download"
}
}}}
is_tag takes precedence of is_category and should
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20767#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list