From 652db28fad2139c9ae263600e3efd909585df55a Mon Sep 17 00:00:00 2001 From: PeteMall Date: Wed, 24 Nov 2010 16:54:53 +0000 Subject: [PATCH] Add screen option in site-users. Props duck_, see #15558 git-svn-id: http://svn.automattic.com/wordpress/trunk@16570 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-users-list-table.php | 3 ++- wp-admin/includes/misc.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php index 758bad8ff9..fb48659546 100644 --- a/wp-admin/includes/class-wp-users-list-table.php +++ b/wp-admin/includes/class-wp-users-list-table.php @@ -39,7 +39,8 @@ class WP_Users_List_Table extends WP_List_Table { $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : ''; - $users_per_page = $this->get_items_per_page( 'users_per_page' ); + $per_page = ( $this->is_site_users ) ? 'site_users_network_per_page' : 'users_per_page'; + $users_per_page = $this->get_items_per_page( $per_page ); $paged = $this->get_pagenum(); diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 50ecd1883b..0281cf9f25 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -351,6 +351,7 @@ function set_screen_options() { // Network admin case 'sites_network_per_page': case 'users_network_per_page': + case 'site_users_network_per_page': case 'plugins_network_per_page': case 'themes_network_per_page': case 'site_themes_network_per_page':