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

    r21376 r21413  
    11991199 */
    12001200function wp_new_user_notification($user_id, $plaintext_pass = '') {
    1201     $user = new WP_User($user_id);
     1201    $user = get_userdata( $user_id );
    12021202
    12031203    $user_login = stripslashes($user->user_login);
Note: See TracChangeset for help on using the changeset viewer.