[wp-trac] [WordPress Trac] #11683: update_metadata() passes only the first meta_id

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 1 18:07:39 UTC 2010


#11683: update_metadata() passes only the first meta_id
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  General       |     Version:  2.9
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by scribu):

 Two solutions:

 1. update_usermeta() only updates the first value that it finds

 2. update_usermeta() uses $wpdb->get_col() instead of $wpdb->get_var()

 The first would create more severe backward compatibility issues than the
 second.

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


More information about the wp-trac mailing list