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: https://develop.svn.wordpress.org/trunk@18504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-08-04 03:09:27 +00:00
parent 5b4ac17cc5
commit 8eea785bcb
9 changed files with 54 additions and 37 deletions
+1 -1
View File
@@ -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);