Make WordPress Core

Changeset 35917 for trunk


Ignore:
Timestamp:
12/14/2015 02:58:22 AM (11 years ago)
Author:
jeremyfelt
Message:

MS: Fix pagination in MS Sites List Table when entering a page number.

When a page number is manually entered in the sites list table and no bulk action is selected, add paged as a query argument to the redirect.

Fixes #32982.

File:
1 edited

Legend:

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

    r35182 r35917  
    162162                                }
    163163                        } else {
    164                                 wp_redirect( network_admin_url( 'sites.php' ) );
     164                                $location = network_admin_url( 'sites.php' );
     165                                if ( ! empty( $_REQUEST['paged'] ) ) {
     166                                        $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
     167                                }
     168                                wp_redirect( $location );
    165169                                exit();
    166170                        }
Note: See TracChangeset for help on using the changeset viewer.