[wp-trac] [WordPress Trac] #13088: update_usermeta() and update_user_meta() behave differently

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 22 22:18:19 UTC 2010


#13088: update_usermeta() and update_user_meta() behave differently
--------------------------+-------------------------------------------------
 Reporter:  mdawaffe      |       Owner:      
     Type:  defect (bug)  |      Status:  new 
 Priority:  normal        |   Milestone:  3.0 
Component:  Users         |     Version:  3.0 
 Severity:  major         |    Keywords:  meta
--------------------------+-------------------------------------------------

Comment(by nacin):

 I kept forgetting to move over those checks in wpmu_new_user.

 Maybe we just do:

 {{{
 if ( ! is_array( $newvalue ) && empty( $newvalue ) )
   // delete
 }}}

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


More information about the wp-trac mailing list