We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f920c9b commit 2323abaCopy full SHA for 2323aba
1 file changed
wp-admin/includes/user.php
@@ -354,12 +354,18 @@ function prepare_vars_for_template_usage() {
354
355
function do_paging() {
356
if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
357
+ $args = array();
358
+ if( ! empty($this->search_term) )
359
+ $args['usersearch'] = urlencode($this->search_term);
360
+ if( ! empty($this->role) )
361
+ $args['role'] = urlencode($this->role);
362
+
363
$this->paging_text = paginate_links( array(
364
'total' => ceil($this->total_users_for_query / $this->users_per_page),
365
'current' => $this->page,
366
'base' => 'users.php?%_%',
367
'format' => 'userspage=%#%',
- 'add_args' => array( 'usersearch' => urlencode($this->search_term) )
368
+ 'add_args' => $args
369
) );
370
}
371
0 commit comments