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

WordPress Trac noreply at wordpress.org
Mon Sep 16 05:01:26 UTC 2013


#17199: Unintuitive tax query 'operator' values
-------------------------------------------------+-------------------------
 Reporter:  scribu                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  3.7
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-refresh commit       |
  needs-docs needs-codex                         |
-------------------------------------------------+-------------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch needs-refresh commit needs-docs needs-
     codex


Comment:

 This is fine. In lieu of in_array(), a straight-up check would be clearer
 and cleaner (incidentally also faster). So `'IN' == $operator || 'OR' ==
 $operator`.

 This will likely require some phpdoc changes? Codex changes?

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


More information about the wp-trac mailing list