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:
parent
b74f222d33
commit
9d94ec0cad
@ -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
Block a user