[wp-trac] [WordPress Trac] #19738: meta_query should check for wildcards when using LIKE operator

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 4 18:35:05 UTC 2012


#19738: meta_query should check for wildcards when using LIKE operator
-------------------------+-----------------------------
 Reporter:  ejdanderson  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  3.2
 Severity:  normal       |   Keywords:  needs-patch
-------------------------+-----------------------------
 This seems intentional, but when using the LIKE operator in a meta query,
 the % wildcards are automatically added to the start and end of the value
 when generating the SQL.

 I think a more robust way of doing this would be to only add said
 wildcards if one cannot be found within the value itself.

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


More information about the wp-trac mailing list