[wp-trac] [WordPress Trac] #17199: Unintuitive tax query 'operator' values

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 20 21:53:52 UTC 2011


#17199: Unintuitive tax query 'operator' values
-------------------------+------------------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Description changed by scribu:

Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17199#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list