From e3c2e17aee130429116fa453282b6b13bd209ca8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 17 Dec 2010 22:07:26 +0000 Subject: [PATCH] Don't limit total_users. props scribu, fixes #15479. git-svn-id: https://develop.svn.wordpress.org/trunk@17034 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index e1ec9630e1..20add19c37 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -534,7 +534,7 @@ class WP_User_Query { return; if ( $this->query_vars['count_total'] ) - $this->total_users = $wpdb->get_var("SELECT COUNT($wpdb->users.ID) $this->query_from $this->query_where $this->query_orderby $this->query_limit"); + $this->total_users = $wpdb->get_var("SELECT COUNT(*) $this->query_from $this->query_where"); if ( 'all_with_meta' == $this->query_vars['fields'] ) { cache_users( $this->results );