Opened 2 years ago
Last modified 7 months ago
#17199 new enhancement
Unintuitive tax query 'operator' values
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by scribu)
Currently, the accepted values for the tax_query 'operator' arg are:
AND, IN and NOT IN.
It would be better if they were instead:
AND, OR and NOT.
which would be more intuitive and consistent with wp_list_filter().
Obviously, we would still have to keep backwards compatibility with the old values.
Change History (3)
Note: See
TracTickets for help on using
tickets.

Agreed, OR rather than IN makes more sense and is more consistant. Same with NOT.