global $mode,
$usersearch,
$role;
if ( !
empty( $_REQUEST['mode'
] ) ) { $mode = 'excerpt' ===
$_REQUEST['mode'
] ? 'excerpt' : 'list';
set_user_setting( 'network_users_list_mode',
$mode );
} else { $mode =
get_user_setting( 'network_users_list_mode', 'list'
);
} $usersearch =
isset( $_REQUEST['s'
] ) ?
wp_unslash( trim( $_REQUEST['s'
] ) ) : '';
$users_per_page =
$this->
get_items_per_page( 'users_network_per_page'
);
$role =
isset( $_REQUEST['role'
] ) ?
$_REQUEST['role'
] : '';
$paged =
$this->
get_pagenum();
$args = array
( 'number' =>
$users_per_page,
'offset'
=> ( $paged - 1
) *
$users_per_page,
'search' =>
$usersearch,
'blog_id' => 0,
'fields' => 'all_with_meta',
);