Changeset 3488

Show
Ignore:
Timestamp:
01/27/06 18:14:33 (3 years ago)
Author:
ryan
Message:

Reinstate user_firstname, user_lastname, and user_description in the user object for backwards compat.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/pluggable-functions.php

    r3455 r3488  
    8787    } //end if 
    8888 
     89    // For backwards compat. 
     90    if ( isset($user->first_name) ) 
     91        $user->user_firstname = $user->first_name; 
     92    if ( isset($user->last_name) ) 
     93        $user->user_lastname = $user->last_name; 
     94    if ( isset($user->description) ) 
     95        $user->user_description = $user->description; 
     96         
    8997    wp_cache_add($user_id, $user, 'users'); 
    9098    wp_cache_add($user->user_login, $user, 'userlogins'); 
     
    131139        } 
    132140    } 
     141 
     142    // For backwards compat. 
     143    if ( isset($user->first_name) ) 
     144        $user->user_firstname = $user->first_name; 
     145    if ( isset($user->last_name) ) 
     146        $user->user_lastname = $user->last_name; 
     147    if ( isset($user->description) ) 
     148        $user->user_description = $user->description; 
    133149 
    134150    wp_cache_add($user->ID, $user, 'users');