[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:13:47 UTC 2010
#13088: update_usermeta() and update_user_meta() behave differently
--------------------------+-------------------------------------------------
Reporter: mdawaffe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Users | Version: 3.0
Severity: major | Keywords: meta
--------------------------+-------------------------------------------------
Comment(by mdawaffe):
13088.diff
Switches wpmu_create_user() to use delete_user_option().
Adds delete_user_meta() logic to update_user_option(). This simple test
isn't 100% backward compatible since update_usermeta() serializes the
value before doing the empty() check. So empty arrays don't cause the row
to be deleted in update_usermeta(), but they do cause the row to be
deleted in the above patched version of update_user_option().
Untested :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13088#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list