[wp-trac] [WordPress Trac] #58180: Specify the REGEXP format for meta_query

WordPress Trac noreply at wordpress.org
Mon Apr 24 05:47:20 UTC 2023


#58180: Specify the REGEXP format for meta_query
----------------------------+-------------------------------------
 Reporter:  letraceursnork  |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Database        |    Version:  6.2
 Severity:  trivial         |   Keywords:  needs-docs dev-feedback
  Focuses:                  |
----------------------------+-------------------------------------
 Because of the fact that `meta_query` parameter with `['compare' =>
 'REGEXP', 'key' => 'foo', 'value' => '^bar']` working as substitution to
 raw SQL-request like `... foo.meta_key REGEXP ^bar ...`
 please, specify this explicitly in the
 [https://developer.wordpress.org/reference/classes/wp_meta_query/
 documentation] - especially the fact that this REGEXP should not be
 wrapped in `/`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58180>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list