[wp-trac] [WordPress Trac] #10800: Allow LIKE comparison for $q['meta_compare']
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 16 22:20:13 UTC 2009
#10800: Allow LIKE comparison for $q['meta_compare']
-------------------------+--------------------------------------------------
Reporter: johncoswell | Owner: ryan
Type: enhancement | Status: new
Priority: lowest | Milestone: Future Release
Component: Query | Version: 2.8.4
Severity: trivial | Keywords:
-------------------------+--------------------------------------------------
I am working on a plugin that will be doing plaintext searches of a
metadata property. It would be helpful to have the LIKE operator available
to 'meta_compare' within WP_Query::get_posts so that I don't have to
create a new filter to accomplish the same result:
{{{
in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=',
'LIKE'))
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10800>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list