Make WordPress Core

Changeset 3865


Ignore:
Timestamp:
06/11/2006 08:54:07 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.