Network Admin: Fix pagination on site-themes and site-users.
props kawauso, jeremyfelt. fixes #17545. git-svn-id: https://develop.svn.wordpress.org/trunk@27715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
17c48086fb
commit
b2ad4105e3
@ -44,6 +44,10 @@ $temp_args = array( 'enabled', 'disabled', 'error' );
|
||||
$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
|
||||
$referer = remove_query_arg( $temp_args, wp_get_referer() );
|
||||
|
||||
if ( ! empty( $_REQUEST['paged'] ) ) {
|
||||
$referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
|
||||
}
|
||||
|
||||
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
||||
if ( ! $id )
|
||||
|
@ -39,6 +39,10 @@ get_current_screen()->set_help_sidebar(
|
||||
$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
|
||||
$referer = remove_query_arg( 'update', wp_get_referer() );
|
||||
|
||||
if ( ! empty( $_REQUEST['paged'] ) ) {
|
||||
$referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
|
||||
}
|
||||
|
||||
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
||||
if ( ! $id )
|
||||
|
Loading…
Reference in New Issue
Block a user