From 9d94ec0cad8cb737b608aa5372e2dde9095278cf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Feb 2014 18:29:41 +0000 Subject: [PATCH] Use filtered per_page value in WP_Plugin_Install_List_Table and WP_Theme_Install_List_Table. props brasofilo. fixes #25675. git-svn-id: https://develop.svn.wordpress.org/trunk@27221 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugin-install-list-table.php | 2 +- src/wp-admin/includes/class-wp-theme-install-list-table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php index c821f9da97..868c08caa3 100644 --- a/src/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/src/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -129,7 +129,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $this->set_pagination_args( array( 'total_items' => $api->info['results'], - 'per_page' => $per_page, + 'per_page' => $args['per_page'], ) ); } diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index 5fdce2a9a1..50e597839c 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -107,7 +107,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $this->set_pagination_args( array( 'total_items' => $api->info['results'], - 'per_page' => $per_page, + 'per_page' => $args['per_page'], 'infinite_scroll' => true, ) ); }