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/user.php

    r21364 r21413  
    199199 */
    200200function get_user_to_edit( $user_id ) {
    201     $user = new WP_User( $user_id );
     201    $user = get_userdata( $user_id );
    202202
    203203    $user->filter = 'edit';
Note: See TracChangeset for help on using the changeset viewer.