[wp-trac] [WordPress Trac] #42409: Add LIKE support to meta_key comparisons in WP_Meta_Query

WordPress Trac noreply at wordpress.org
Mon Nov 6 10:27:47 UTC 2017


#42409: Add LIKE support to meta_key comparisons in WP_Meta_Query
-------------------------------------------------+-------------------------
 Reporter:  Otto42                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Database                             |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  good-first-bug needs-unit-tests      |  Resolution:
  has-patch                                      |     Focuses:
-------------------------------------------------+-------------------------

Comment (by kokers):

 Plus, if we already touch this part of code, it would be nice to allow
 other compare options like it is now for meta value with 'LIKE', 'NOT
 LIKE','IN', 'NOT IN','EXISTS', 'NOT EXISTS', etc. I don't think '!=', '>',
 '>=', '<', '<=', 'BETWEEN', 'NOT BETWEEN' would be needed, as this is more
 value related, but i can see using those other operators.

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


More information about the wp-trac mailing list