WordPress.org

Make WordPress Core

Changeset 14311


Ignore:
Timestamp:
04/29/10 20:55:39 (5 years ago)
Author:
ryan
Message:

Don't consult global current_user object for usermeta values. Use get_userdata().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r14309 r14311  
    239239    if ( empty($user) ) { 
    240240        $user = wp_get_current_user(); 
    241     } else { 
    242         $user = get_userdata($user); 
    243     } 
     241        $user = $user->ID; 
     242    } 
     243 
     244    $user = get_userdata($user); 
    244245 
    245246    // Keys used as object vars cannot have dashes. 
Note: See TracChangeset for help on using the changeset viewer.