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:
ryan
2011-08-04 03:09:27 +00:00
parent 6e3e6da9bd
commit 6c81d023bb
9 changed files with 54 additions and 37 deletions

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);