WordPress.org

Make WordPress Core

Changeset 20087


Ignore:
Timestamp:
03/02/12 21:02:22 (2 years ago)
Author:
nacin
Message:

$userdata should be null for anonymous requests. props duck_. fixes #19769 for 3.3. see #19595.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-includes/user.php

    r19643 r20087  
    932932        $user = new WP_User($for_user_id); 
    933933 
    934     $userdata   = $user; 
     934    $userdata   = null; 
    935935    $user_ID    = (int) $user->ID; 
    936936    $user_level = (int) isset($user->user_level) ? $user->user_level : 0; 
     
    941941    } 
    942942 
     943    $userdata   = $user; 
    943944    $user_login = $user->user_login; 
    944945    $user_email = $user->user_email; 
Note: See TracChangeset for help on using the changeset viewer.