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:
parent
9ffb23ab68
commit
65ebbb6385
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue