Ticket #4017: 4017.diff
File 4017.diff, 875 bytes (added by , 17 years ago) |
---|
-
wp-admin/includes/user.php
354 354 355 355 function do_paging() { 356 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 357 363 $this->paging_text = paginate_links( array( 358 364 'total' => ceil($this->total_users_for_query / $this->users_per_page), 359 365 'current' => $this->page, 360 366 'base' => 'users.php?%_%', 361 367 'format' => 'userspage=%#%', 362 'add_args' => array( 'usersearch' => urlencode($this->search_term) )368 'add_args' => $args 363 369 ) ); 364 370 } 365 371 }