[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 14:55:21 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  |
-------------------------------------+------------------
Changes (by Doggie52):

 * cc: douglas@… (added)


Comment:

 Replying to [comment:8 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 '='.
 What do you mean? If what you're matching against (i.e. the DB entry) is
 serialized? If you know that data is serialized then you'll of course
 serialize your {{{value}}} - am I wrong? Why point such a thing out?

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


More information about the wp-trac mailing list