Make WordPress Core


Ignore:
Timestamp:
05/12/2011 06:09:42 AM (14 years ago)
Author:
markjaquith
Message:

Centralize pagination bound exceeding redirects for list tables. props garyc40. props johnjamesjacoby. fixes #16208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-install.php

    r17748 r17900  
    2424$pagenum = $wp_list_table->get_pagenum();
    2525$wp_list_table->prepare_items();
    26 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
    27 if ( $pagenum > $total_pages && $total_pages > 0 ) {
    28     wp_redirect( add_query_arg( 'paged', $total_pages ) );
    29     exit;
    30 }
    3126
    3227$title = __('Install Plugins');
Note: See TracChangeset for help on using the changeset viewer.