Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

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

    r7645 r8242  
    355355    function do_paging() {
    356356        if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
     357            $args = array();
     358            if( ! empty($this->search_term) )
     359                $args['usersearch'] = urlencode($this->search_term);
     360            if( ! empty($this->role) )
     361                $args['role'] = urlencode($this->role);
     362
    357363            $this->paging_text = paginate_links( array(
    358364                'total' => ceil($this->total_users_for_query / $this->users_per_page),
     
    360366                'base' => 'users.php?%_%',
    361367                'format' => 'userspage=%#%',
    362                 'add_args' => array( 'usersearch' => urlencode($this->search_term) )
     368                'add_args' => $args
    363369            ) );
    364370        }
Note: See TracChangeset for help on using the changeset viewer.