Make WordPress Core


Ignore:
Timestamp:
12/01/2009 02:06:02 AM (14 years ago)
Author:
ryan
Message:

Accept either user_id or user_ID. Remove user_id global. see #11271 #11222

File:
1 edited

Legend:

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

    r12288 r12300  
    452452 */
    453453function setup_userdata($for_user_id = '') {
    454     global $user_login, $userdata, $user_level, $user_id, $user_ID, $user_email, $user_url, $user_pass_md5, $user_identity;
     454    global $user_login, $userdata, $user_level, $user_ID, $user_email, $user_url, $user_pass_md5, $user_identity;
    455455
    456456    if ( '' == $for_user_id )
     
    465465    $user_login = $user->user_login;
    466466    $user_level = (int) isset($user->user_level) ? $user->user_level : 0;
    467     $user_id = $user_ID = (int) $user->ID;
     467    $user_ID = (int) $user->ID;
    468468    $user_email = $user->user_email;
    469469    $user_url   = $user->user_url;
Note: See TracChangeset for help on using the changeset viewer.