[wp-trac] [WordPress Trac] #18736: Add REGEXP to 'compare' values in meta_query

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 21 21:30:00 UTC 2012


#18736: Add REGEXP to 'compare' values in meta_query
-------------------------+------------------------------
 Reporter:  FlashUK      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Database     |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch


Comment:

 This is really easy to implement - not sure if anything more than
 $wpdb->prepare is needed to escape RegEx, but the whole meta_compare thing
 is really "you break it, you bought it" anyways. Attached a patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18736#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list