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/plugins.php

    r17872 r17900  
    314314$wp_list_table->prepare_items();
    315315
    316 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
    317 if ( $pagenum > $total_pages && $total_pages > 0 ) {
    318     wp_redirect( add_query_arg( 'paged', $total_pages ) );
    319     exit;
    320 }
    321 
    322316wp_enqueue_script('plugin-install');
    323317add_thickbox();
Note: See TracChangeset for help on using the changeset viewer.