[wp-trac] [WordPress Trac] #11627: parts of metadata API fail on user metadata

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 26 05:12:20 UTC 2009


#11627: parts of metadata API fail on user metadata
--------------------------+-------------------------------------------------
 Reporter:  wnorris       |       Owner:                           
     Type:  defect (bug)  |      Status:  new                      
 Priority:  normal        |   Milestone:  3.0                      
Component:  General       |     Version:  2.9                      
 Severity:  major         |    Keywords:  db, metadata, needs-patch
--------------------------+-------------------------------------------------
 two functions in the new metadata API reference the column named 'meta_id'
 directly, those are update_metadata and delete_metadata.  In the usermeta
 table however, this column is actually named umeta_id.  Using either of
 these two functions to update or delete user metadata results in a
 WordPress database error.

 I think the best long term solution would be to rename this column to
 'meta_id' so that it's consistent.  However, I can imagine that would
 break a few plugins.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11627>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list