Opened 12 years ago
Closed 12 years ago
#25675 closed defect (bug) (fixed)
Fix pagination in install-plugins.php to work with the filter install_plugins_table_api_args_$tab
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.8 |
| Component: | Plugins | Keywords: | has-patch |
| Focuses: | administration | Cc: |
Description
We can modify the per_page value in different tabs of the Install Plugins screen using the hook install_plugins_table_api_args_$tab, but pagination does not reflect that.
Per page is add as an argument value in line 63
$args = array( 'page' => $paged, 'per_page' => $per_page );
The filter is applied on the arguments in line 118, but right after, in 132, the pagination args refer back to $per_page instead of $args['per_page'], which would produce the desired effect.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Per page in wp-admin/includes/class-wp-plugin-install-list-table.php