Role display fix from Owen. fixes #2338

git-svn-id: https://develop.svn.wordpress.org/trunk@3483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-01-25 03:44:35 +00:00
parent 9ffb23ab68
commit 65ebbb6385
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ default:
foreach($userids as $userid) { foreach($userids as $userid) {
$tmp_user = new WP_User($userid); $tmp_user = new WP_User($userid);
$roles = $tmp_user->roles; $roles = $tmp_user->roles;
$role = $roles[0]; $role = array_shift($roles);
$roleclasses[$role][$tmp_user->user_login] = $tmp_user; $roleclasses[$role][$tmp_user->user_login] = $tmp_user;
} }