Fix typo in inline docs. props TobiasBg. see #13088
git-svn-id: http://svn.automattic.com/wordpress/trunk@14196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9602ae765
commit
960696ad2a
|
@ -275,7 +275,7 @@ function update_user_option( $user_id, $option_name, $newvalue, $global = false
|
|||
if ( !$global )
|
||||
$option_name = $wpdb->prefix . $option_name;
|
||||
|
||||
// For backward compatibility. See differences between update_user_meta() and deprecated update_user_meta().
|
||||
// For backward compatibility. See differences between update_user_meta() and deprecated update_usermeta().
|
||||
// http://core.trac.wordpress.org/ticket/13088
|
||||
if ( is_null( $newvalue ) || is_scalar( $newvalue ) && empty( $newvalue ) )
|
||||
return delete_user_meta( $user_id, $option_name );
|
||||
|
|
Loading…
Reference in New Issue