Opened 14 years ago
Closed 14 years ago
#16170 closed defect (bug) (fixed)
Tag queries don't set tag_id
Reported by: | ryan | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
Queries such as tag__* and tag_slug__* should set tag_id to the first term in the array of terms.
Attachments (3)
Change History (10)
#2
follow-up:
↓ 3
@
14 years ago
How would array( 'operator' => 'IN', 'operator' => 'AND' )
ever work?
#3
in reply to:
↑ 2
@
14 years ago
Replying to scribu:
How would
array( 'operator' => 'IN', 'operator' => 'AND' )
ever work?
It wouldn't. :-) That was a for play version that I didn't mean to upload. Updated to add 'not in' support to wp_list_filter().
Version 0, edited 14 years ago
by
(next)
#4
@
14 years ago
16170.2.diff allows the operator arg to be in any case, for parity with tax_query.
Not sure if NOT IN is the best name, but hey.
#5
@
14 years ago
16170.3.diff uses NOT instead of NOT IN.
Note: See
TracTickets for help on using
tickets.
I think this can be done fairly easily in the " Back-compat" block that loops over the tax queries. The wp_list_filter( ) call needs to be updated to allow for both IN and AND operators.