WordPress.org

Make WordPress Core

Changeset 16570


Ignore:
Timestamp:
11/24/10 16:54:53 (3 years ago)
Author:
PeteMall
Message:

Add screen option in site-users. Props duck_, see #15558

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r16560 r16570  
    4040        $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : ''; 
    4141 
    42         $users_per_page = $this->get_items_per_page( 'users_per_page' ); 
     42        $per_page = ( $this->is_site_users ) ? 'site_users_network_per_page' : 'users_per_page'; 
     43        $users_per_page = $this->get_items_per_page( $per_page ); 
    4344 
    4445        $paged = $this->get_pagenum(); 
  • trunk/wp-admin/includes/misc.php

    r16536 r16570  
    352352            case 'sites_network_per_page': 
    353353            case 'users_network_per_page': 
     354            case 'site_users_network_per_page': 
    354355            case 'plugins_network_per_page': 
    355356            case 'themes_network_per_page': 
Note: See TracChangeset for help on using the changeset viewer.