[wp-trac] [WordPress Trac] #15049: postavoid add_metadata to insert duplicated entries

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 6 20:18:35 UTC 2010


#15049: postavoid add_metadata to insert duplicated entries
-------------------------+--------------------------------------------------
 Reporter:  leogermani   |       Owner:                                
     Type:  enhancement  |      Status:  new                           
 Priority:  normal       |   Milestone:  Awaiting Review               
Component:  Database     |     Version:  3.1                           
 Severity:  normal       |    Keywords:  metadata, post_meta, user_meta
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 Also, I'd change the patch so it fetches the meta using the API and use
 in_array(). The typical use case for add_meta is to insert an additional
 value in an array. There are good chances it's in the cache when it gets
 called.

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


More information about the wp-trac mailing list