[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:21:50 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 mdawaffe):
Replying to [comment:3 nacin]:
> Maybe we just do:
>
> {{{
> if ( ! is_array( $newvalue ) && empty( $newvalue ) )
> // delete
> }}}
Maybe if ( is_scalar( $newvalue ) && empty( $newvalue ) ) ? Empty objects
are dealt with the same way as empty arrays.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13088#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list