[wp-trac] [WordPress Trac] #25431: like_escape in meta_query

WordPress Trac noreply at wordpress.org
Sat Sep 28 03:27:56 UTC 2013


#25431: like_escape in meta_query
----------------------------+-----------------------------
 Reporter:  Lucas_Lobosque  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Query           |    Version:  3.6.1
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 {{{
 Array (
   [post_type] => gallery_post
   [posts_per_page] => 4
   [paged] => 1
   [meta_query] => Array (
     [0] => Array (
       [key] => author
       [value] => B%
       [compare] => LIKE
     )
   )
 )
 }}}

 Right now, like_escape is used in the meta_query value, but what if I want
 values starting with letter B, like in the example above?
 Why not let the user explicitly use like_escape or add a flag or something
 to keep backwards compatibility?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25431>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list