Don't limit total_users. props scribu, fixes #15479.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-17 22:07:26 +00:00
parent 1d304b55c6
commit 0e7a94a6fe

View File

@ -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 );