WordPress.org

Make WordPress Core

Ticket #19769: 19769.3.diff

File 19769.3.diff, 558 bytes (added by nacin, 6 years ago)
  • wp-includes/user.php

     
    936936        else
    937937                $user = new WP_User($for_user_id);
    938938
    939         $userdata   = $user;
     939        $userdata   = null;
    940940        $user_ID    = (int) $user->ID;
    941941        $user_level = (int) isset($user->user_level) ? $user->user_level : 0;
    942942
     
    945945                return;
    946946        }
    947947
     948        $userdata   = $user;
    948949        $user_login     = $user->user_login;
    949950        $user_email     = $user->user_email;
    950951        $user_url       = $user->user_url;