[wp-trac] [WordPress Trac] #18707: Meta Query printing "array" in query when compare type is LIKE

WordPress Trac noreply at wordpress.org
Tue Oct 14 02:45:16 UTC 2014


#18707: Meta Query printing "array" in query when compare type is LIKE
-------------------------------------------------+-------------------------
 Reporter:  tplayer                              |       Owner:
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Query                                |     Version:  3.2.1
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  has-patch needs-testing meta-query   |     Focuses:
  needs-refresh                                  |
-------------------------------------------------+-------------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 Replying to [comment:5 wonderboymusic]:
 > This does make some sense from an API perspective - my performance
 concerns are still vast

 If someone wants to join a half dozen LIKE clauses, they can already do
 it. The new proposed syntax makes it marginally easier to inflict pain on
 oneself, but IMO this is not a serious concern.

 More serious is that LIKE + an array is ambiguous between OR and AND.
 #27344 proposes some additional syntax to handle that, but in
 https://core.trac.wordpress.org/ticket/27344#comment:4 I rain on that
 parade too. Short story: anything you want to do with the proposed array
 syntax can be accomplished without it, especially since [29887].

 I'm going to close this ticket because it's covered by #27344, which I
 think should also be closed. robmiller - thanks so much for the patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18707#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list