[wp-trac] [WordPress Trac] #25675: Fix pagination in install-plugins.php to work with the filter install_plugins_table_api_args_$tab

WordPress Trac noreply at wordpress.org
Wed Oct 23 19:36:12 UTC 2013


#25675: Fix pagination in install-plugins.php to work with the filter
install_plugins_table_api_args_$tab
--------------------------+-----------------------------
 Reporter:  brasofilo     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 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.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25675>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list