Ticket #15479: total.15479.diff
File total.15479.diff, 675 bytes (added by , 10 years ago) |
---|
-
wp-includes/user.php
534 534 if ( !$this->results ) 535 535 return; 536 536 537 if ( $this->query_vars['count_total'] ) 538 $this->total_users = $wpdb->get_var("SELECT COUNT($wpdb->users.ID) $this->query_from $this->query_where $this->query_orderby $this->query_limit"); 537 if ( $this->query_vars['count_total'] ) { 538 $this->total_users = $wpdb->get_var("SELECT COUNT(*) $this->query_from $this->query_where"); 539 } 539 540 540 541 if ( 'all_with_meta' == $this->query_vars['fields'] ) { 541 542 cache_users( $this->results );