diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
commit | 767c3538b9f4aa2684429a7efea8f7728034c754 (patch) | |
tree | 8cc7b4bc82bfc8e5cc2179b7a8aa7b4f9a2be193 /wp-admin/users.php | |
parent | 23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (diff) | |
download | wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.gz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.xz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.zip |
WP Merge to rev 4347
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/users.php')
-rw-r--r-- | wp-admin/users.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/wp-admin/users.php b/wp-admin/users.php index f0277b0..45f7156 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -84,15 +84,15 @@ class WP_User_Search { function do_paging() { if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results - $prev_page = ( $this->page > 1) ? true : false; - $next_page = ( ($this->page * $this->users_per_page) < $this->total_users_for_query ) ? true : false; - $this->paging_text = ''; - if ( $prev_page ) - $this->paging_text .= '<p class="alignleft"><a href="' . add_query_arg(array('usersearch' => $this->search_term, 'userspage' => $this->page - 1), 'users.php?') . '">« Previous Page</a></p>'; - if ( $next_page ) - $this->paging_text .= '<p class="alignright"><a href="' . add_query_arg(array('usersearch' => $this->search_term, 'userspage' => $this->page + 1), 'users.php?') . '">Next Page »</a></p>'; - if ( $prev_page || $next_page ) - $this->paging_text .= '<br style="clear:both" />'; + $this->paging_text = paginate_links( array( + 'total' => ceil($this->total_users_for_query / $this->users_per_page), + 'current' => $this->page, + 'prev_text' => '« Previous Page', + 'next_text' => 'Next Page »', + 'base' => 'users.php?%_%', + 'format' => 'userspage=%#%', + 'add_args' => array( 'usersearch' => urlencode($this->search_term) ) + ) ); } } @@ -497,7 +497,7 @@ default: <table class="widefat"> <?php foreach($roleclasses as $role => $roleclass) { - ksort($roleclass); + uksort($roleclass, "strnatcasecmp"); ?> <tr> |