WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 16 months ago

#17199 closed enhancement

Unintuitive tax query 'operator' values — at Version 2

Reported by: scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch needs-refresh needs-docs close
Focuses: 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 (2)

comment:1 @scribu4 years ago

  • Component changed from General to Query

comment:2 @scribu4 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.