Make WordPress Core

Changeset 27715


Ignore:
Timestamp:
03/25/2014 04:56:45 PM (10 years ago)
Author:
nacin
Message:

Network Admin: Fix pagination on site-themes and site-users.

props kawauso, jeremyfelt.
fixes #17545.

Location:
trunk/src/wp-admin/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-themes.php

    r27469 r27715  
    4444$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
    4545$referer = remove_query_arg( $temp_args, wp_get_referer() );
     46
     47if ( ! empty( $_REQUEST['paged'] ) ) {
     48    $referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
     49}
    4650
    4751$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
  • trunk/src/wp-admin/network/site-users.php

    r27469 r27715  
    3939$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
    4040$referer = remove_query_arg( 'update', wp_get_referer() );
     41
     42if ( ! empty( $_REQUEST['paged'] ) ) {
     43    $referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
     44}
    4145
    4246$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
Note: See TracChangeset for help on using the changeset viewer.