summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-users.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/wpmu-users.php')
-rw-r--r--wp-admin/wpmu-users.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/wp-admin/wpmu-users.php b/wp-admin/wpmu-users.php
index 47238b9..b2ef439 100644
--- a/wp-admin/wpmu-users.php
+++ b/wp-admin/wpmu-users.php
@@ -68,10 +68,9 @@ if ( $_GET['updated'] == 'true' ) {
$query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
if( !empty( $s )) {
- $user_list = $wpdb->get_results( $query, ARRAY_A );
- $total = count($user_list);
+ $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) );
} else {
- $total = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->users}");
+ $total = $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->users}");
}
$query .= " LIMIT " . intval( ( $apage - 1 ) * $num) . ", " . intval( $num );