Add magic get/set/isset methods to WP_User to avoid data duplication. Standardize on WP_User::ID. Props scribu. see #15458
git-svn-id: http://svn.automattic.com/wordpress/trunk@18504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1566,7 +1566,7 @@ function wp_update_user($userdata) {
|
||||
|
||||
// Update the cookies if the password changed.
|
||||
$current_user = wp_get_current_user();
|
||||
if ( $current_user->id == $ID ) {
|
||||
if ( $current_user->ID == $ID ) {
|
||||
if ( isset($plaintext_pass) ) {
|
||||
wp_clear_auth_cookie();
|
||||
wp_set_auth_cookie($ID);
|
||||
|
||||
Reference in New Issue
Block a user