Make WordPress Core


Ignore:
Timestamp:
06/10/2006 08:26:26 PM (18 years ago)
Author:
ryan
Message:

Better handling of users with no role. Props Mark Jaquith. #2809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/registration-functions.php

    r3800 r3859  
    103103    update_usermeta( $user_id, 'yim', $yim );
    104104
    105     if ($update && !empty($role)) {
     105    if ( $update ) {
    106106        $user = new WP_User($user_id);
    107107        $user->set_role($role);
Note: See TracChangeset for help on using the changeset viewer.