mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Screen option for Post Format UI.
props nacin. see #23930. git-svn-id: https://develop.svn.wordpress.org/trunk@24092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -276,11 +276,6 @@ 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_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 );
|
||||
|
||||
return update_user_meta( $user_id, $option_name, $newvalue );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user