WordPress.org

Make WordPress Core

Changeset 3483


Ignore:
Timestamp:
01/25/2006 03:44:35 AM (16 years ago)
Author:
ryan
Message:

Role display fix from Owen. fixes #2338

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r3295 r3483  
    150150        $tmp_user = new WP_User($userid);
    151151        $roles = $tmp_user->roles;
    152         $role = $roles[0];
     152        $role = array_shift($roles);
    153153        $roleclasses[$role][$tmp_user->user_login] = $tmp_user;
    154154    }   
Note: See TracChangeset for help on using the changeset viewer.