[wp-trac] [WordPress Trac] #41287: Add AND query mode for taxonomy terms
WordPress Trac
noreply at wordpress.org
Tue May 11 15:15:26 UTC 2021
#41287: Add AND query mode for taxonomy terms
---------------------------------------------------+-----------------------
Reporter: sebbb | Owner: dlh
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.8
Component: REST API | Version: 4.8
Severity: normal | Resolution:
Keywords: dev-feedback has-patch has-unit-tests | Focuses:
---------------------------------------------------+-----------------------
Changes (by dlh):
* keywords: dev-feedback needs-patch needs-unit-tests => dev-feedback has-
patch has-unit-tests
Comment:
PR submitted: https://github.com/WordPress/wordpress-develop/pull/1249
The patch uses an enum of `AND`/`OR`, rather than `AND`/`IN` as used by
`WP_Tax_Query`, for general readability and consistency with
`tax_relation`, but that's easy to change if desired.
The patch doesn't include `EXISTS` in the `enum` only as it wasn't
requested here, but I suppose that it could.
I'm open to feedback about those choices or any others in the PR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41287#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list