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

WordPress Trac noreply at wordpress.org
Thu Nov 2 01:06:45 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:
-------------------------------------------------+-------------------------
Changes (by mariovalney):

 * keywords:  good-first-bug needs-patch needs-unit-tests => good-first-bug
     needs-unit-tests has-patch


Comment:

 Hey!

 Added `meta_key_compare` as suggested, allowing 'like' and '=' (default)
 and some comments as well.

 Thanks for the great guidance in description.

 I'll search how to add the unit tests :D
 ''(but if someone wants to contributing with test, it would be
 appreciated)''

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


More information about the wp-trac mailing list