Make WordPress Core


Ignore:
Timestamp:
08/03/2012 01:06:05 AM (12 years ago)
Author:
nacin
Message:

Move most instances of new WP_User to get_userdata(). see #21120.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r21364 r21413  
    219219
    220220        if ( !( is_object( $user_object ) && is_a( $user_object, 'WP_User' ) ) )
    221             $user_object = new WP_User( (int) $user_object );
     221            $user_object = get_userdata( (int) $user_object );
    222222        $user_object->filter = 'display';
    223223        $email = $user_object->user_email;
Note: See TracChangeset for help on using the changeset viewer.