Make WordPress Core


Ignore:
Timestamp:
08/04/2011 03:09:27 AM (15 years ago)
Author:
ryan
Message:

Add magic get/set/isset methods to WP_User to avoid data duplication. Standardize on WP_User::ID. Props scribu. see #15458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r18451 r18504  
    15671567        // Update the cookies if the password changed.
    15681568        $current_user = wp_get_current_user();
    1569         if ( $current_user->id == $ID ) {
     1569        if ( $current_user->ID == $ID ) {
    15701570                if ( isset($plaintext_pass) ) {
    15711571                        wp_clear_auth_cookie();
Note: See TracChangeset for help on using the changeset viewer.