[wp-trac] [WordPress Trac] #16829: Automatically set 'compare' => 'IN', when meta value is an array

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 14 12:49:15 UTC 2011


#16829: Automatically set 'compare' => 'IN', when meta value is an array
-------------------------------------+------------------
 Reporter:  scribu                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.3
Component:  Query                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by scribu):

 Note that if you're trying to match against an actual array as a value,
 you will have to manually apply maybe_serialize() on it. Also, you can
 still explicitly set the 'compare' parameter to '='.

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


More information about the wp-trac mailing list