Changes from branches/4.0/src/wp-admin/plugin-install.php at r30249 to trunk/src/wp-admin/plugin-install.php at r29642
- File:
-
- 1 edited
-
trunk/src/wp-admin/plugin-install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugin-install.php
r30249 r29642 25 25 $wp_list_table = _get_list_table('WP_Plugin_Install_List_Table'); 26 26 $pagenum = $wp_list_table->get_pagenum(); 27 28 if ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {29 $location = remove_query_arg( '_wp_http_referer', wp_unslash( $_SERVER['REQUEST_URI'] ) );30 31 if ( ! empty( $_REQUEST['paged'] ) ) {32 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );33 }34 35 wp_redirect( $location );36 exit;37 }38 39 27 $wp_list_table->prepare_items(); 40 41 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );42 43 if ( $pagenum > $total_pages && $total_pages > 0 ) {44 wp_redirect( add_query_arg( 'paged', $total_pages ) );45 exit;46 }47 28 48 29 $title = __( 'Add Plugins' );
Note: See TracChangeset
for help on using the changeset viewer.