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/network/site-users.php

    r21003 r21413  
    144144                        wp_die(__('Cheatin’ uh?'));
    145145
    146                     $user = new WP_User( $user_id );
     146                    $user = get_userdata( $user_id );
    147147                    $user->set_role( $_REQUEST['new_role'] );
    148148                }
Note: See TracChangeset for help on using the changeset viewer.