summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/user.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-06-30 11:17:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-06-30 11:17:02 +0000
commit541e47c09b503df8bd9b6d149c82cb8d98ac2710 (patch)
tree94c90cfd4eee2b1035f886877b77f53d1f1717c8 /wp-admin/includes/user.php
parent717b64911edf6baaa2aea29e13b8e808f088e660 (diff)
downloadwordpress-mu-541e47c09b503df8bd9b6d149c82cb8d98ac2710.tar.gz
wordpress-mu-541e47c09b503df8bd9b6d149c82cb8d98ac2710.tar.xz
wordpress-mu-541e47c09b503df8bd9b6d149c82cb8d98ac2710.zip
WP Merge to revision 8195
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1342 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes/user.php')
-rw-r--r--wp-admin/includes/user.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php
index 4c02592..3bf4fd7 100644
--- a/wp-admin/includes/user.php
+++ b/wp-admin/includes/user.php
@@ -353,12 +353,18 @@ class WP_User_Search {
function do_paging() {
if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
+ $args = array();
+ if( ! empty($this->search_term) )
+ $args['usersearch'] = urlencode($this->search_term);
+ if( ! empty($this->role) )
+ $args['role'] = urlencode($this->role);
+
$this->paging_text = paginate_links( array(
'total' => ceil($this->total_users_for_query / $this->users_per_page),
'current' => $this->page,
'base' => 'users.php?%_%',
'format' => 'userspage=%#%',
- 'add_args' => array( 'usersearch' => urlencode($this->search_term) )
+ 'add_args' => $args
) );
}
}