Fix typo in inline docs. props TobiasBg. see #13088
git-svn-id: https://develop.svn.wordpress.org/trunk@14196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
46c6c0bcf7
commit
de3a5eca3b
@ -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
Block a user