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:
parent
635e50d9a1
commit
f9d5020cb5
|
@ -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'],
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue