[wp-trac] [WordPress Trac] #14645: Support for multiple meta_key => meta_value pairs in WP_Query

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 12 17:34:34 UTC 2010


#14645: Support for multiple meta_key => meta_value pairs in WP_Query
-------------------------+--------------------------------------------------
 Reporter:  joehoyle     |        Owner:  scribu  
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  3.1     
Component:  Query        |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:30 scribu]:
 > I think we should apply maybe_serialize() to each meta value before
 passing it to the query, in order to be consistent with the behaviour of
 add_metadata().

 What if the meta value is stored using separate entries for each keys? It
 seems to me that if an author requests a meta value he means it. If he
 wants the meta value to match a key in a serialized value, he'll use a
 like statement instead.

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


More information about the wp-trac mailing list