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
This commit is contained in:
Sergey Biryukov 2014-02-21 18:29:41 +00:00
parent b74f222d33
commit 9d94ec0cad
2 changed files with 2 additions and 2 deletions

View File

@ -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'],
) );
}

View File

@ -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,
) );
}