Use filtered per_page value in WP_Plugin_Install_List_Table and WP_Theme_Install_List_Table.

props brasofilo.
fixes #25675.
Built from https://develop.svn.wordpress.org/trunk@27221


git-svn-id: http://core.svn.wordpress.org/trunk@27078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-02-21 18:30:14 +00:00
parent 635e50d9a1
commit f9d5020cb5
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,
) );
}