Changeset 3865

Show
Ignore:
Timestamp:
06/11/06 20:54:07 (3 years ago)
Author:
ryan
Message:

Make sure role is set when updating. Props Mark Jaquith. fixes #2817

Files:

Legend:

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

    r3862 r3865  
    103103    update_usermeta( $user_id, 'yim', $yim ); 
    104104 
    105     if ( $update ) { 
     105    if ( $update && isset($role) ) { 
    106106        $user = new WP_User($user_id); 
    107107        $user->set_role($role);