restore user list display in single site, props ocean90, see #12711, #12767

git-svn-id: http://svn.automattic.com/wordpress/trunk@13894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-03-30 18:28:11 +00:00
parent 3ded3d098e
commit bad7ee5c2c
1 changed files with 6 additions and 4 deletions

View File

@ -368,10 +368,12 @@ foreach ( $wp_user_search->get_results() as $userid ) {
$user_object = new WP_User($userid);
$roles = $user_object->roles;
$role = array_shift($roles);
if ( is_multisite() && ! empty($role) ) {
$style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"';
echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] );
}
if ( is_multisite() && empty( $role ) )
continue;
$style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"';
echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] );
}
?>
</tbody>