WordPress.org

Make WordPress Core

Changeset 17034


Ignore:
Timestamp:
12/17/2010 10:07:26 PM (11 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r17032 r17034  
    535535
    536536        if ( $this->query_vars['count_total'] )
    537             $this->total_users = $wpdb->get_var("SELECT COUNT($wpdb->users.ID) $this->query_from $this->query_where $this->query_orderby $this->query_limit");
     537            $this->total_users = $wpdb->get_var("SELECT COUNT(*) $this->query_from $this->query_where");
    538538
    539539        if ( 'all_with_meta' == $this->query_vars['fields'] ) {
Note: See TracChangeset for help on using the changeset viewer.