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-admin/includes/ms.php

    r18337 r18504  
    251251                $errors = new WP_Error();
    252252
    253         if ( $current_user->id != $_POST['user_id'] )
     253        if ( $current_user->ID != $_POST['user_id'] )
    254254                return false;
    255255
Note: See TracChangeset for help on using the changeset viewer.