mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
1d304b55c6
commit
0e7a94a6fe
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user