Make WordPress Core


Ignore:
Timestamp:
02/17/2008 08:16:22 PM (18 years ago)
Author:
ryan
Message:

Remove pseudo role group by

File:
1 edited

Legend:

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

    r6875 r6886  
    292292    var $role;
    293293    var $raw_page;
    294     var $users_per_page = 50;
     294    var $users_per_page = 2;
    295295    var $first_user;
    296296    var $last_user;
    297297    var $query_limit;
     298    var $query_sort;
    298299    var $query_from_where;
    299300    var $total_users_for_query = 0;
     
    316317        global $wpdb;
    317318        $this->first_user = ($this->page - 1) * $this->users_per_page;
    318         $this->query_limit = 'LIMIT ' . $this->first_user . ',' . $this->users_per_page;
     319        $this->query_limit = ' LIMIT ' . $this->first_user . ',' . $this->users_per_page;
     320        $this->query_sort = ' ORDER BY user_login';
    319321        $search_sql = '';
    320322        if ( $this->search_term ) {
     
    338340    function query() {
    339341        global $wpdb;
    340         $this->results = $wpdb->get_col('SELECT ID ' . $this->query_from_where . $this->query_limit);
     342        $this->results = $wpdb->get_col('SELECT ID ' . $this->query_from_where . $this->query_sort . $this->query_limit);
    341343
    342344        if ( $this->results )
Note: See TracChangeset for help on using the changeset viewer.