Make WordPress Core


Ignore:
Timestamp:
08/04/2011 03:09:27 AM (14 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/deprecated.php

    r18498 r18504  
    256256    if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
    257257        if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
    258             return array($user->id);
     258            return array($user->ID);
    259259        else
    260260            return array();
Note: See TracChangeset for help on using the changeset viewer.