Move All Users to head of filter list

git-svn-id: http://svn.automattic.com/wordpress/trunk@7252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-11 21:21:24 +00:00
parent b27053bf5a
commit e1b30972da
1 changed files with 2 additions and 2 deletions

View File

@ -265,6 +265,8 @@ foreach ( (array) $users_of_blog as $b_user ) {
unset($users_of_blog); unset($users_of_blog);
$current_role = false; $current_role = false;
$class = empty($_GET['role']) ? ' class="current"' : '';
$role_links[] = "<li><a href=\"users.php\"$class>" . __('All Users') . "</a>";
foreach ( $wp_roles->get_names() as $role => $name ) { foreach ( $wp_roles->get_names() as $role => $name ) {
if ( !isset($avail_roles[$role]) ) if ( !isset($avail_roles[$role]) )
continue; continue;
@ -280,8 +282,6 @@ foreach ( $wp_roles->get_names() as $role => $name ) {
$name = sprintf(_c('%1$s (%2$s)|user role with count'), $name, $avail_roles[$role]); $name = sprintf(_c('%1$s (%2$s)|user role with count'), $name, $avail_roles[$role]);
$role_links[] = "<li><a href=\"users.php?role=$role\"$class>" . $name . '</a>'; $role_links[] = "<li><a href=\"users.php?role=$role\"$class>" . $name . '</a>';
} }
$class = empty($_GET['role']) ? ' class="current"' : '';
$role_links[] = "<li><a href=\"users.php\"$class>" . __('All Users') . "</a>";
echo implode(' |</li>', $role_links) . '</li>'; echo implode(' |</li>', $role_links) . '</li>';
unset($role_links); unset($role_links);
?> ?>