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

git-svn-id: https://develop.svn.wordpress.org/trunk@13894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-03-30 18:28:11 +00:00
parent 8bfc74c42b
commit a2244bcc26
1 changed files with 6 additions and 4 deletions

View File

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