From 9cda4c5982a083a792642e3bec05c732e0c770c6 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 22 Nov 2011 05:55:55 +0000 Subject: [PATCH] Remove 'update' from site-users.php on redirect. props PeteMall, fixes #18895. git-svn-id: http://svn.automattic.com/wordpress/trunk@19394 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/site-users.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-admin/network/site-users.php b/wp-admin/network/site-users.php index 22bb82ea78..0b743ab535 100644 --- a/wp-admin/network/site-users.php +++ b/wp-admin/network/site-users.php @@ -33,6 +33,9 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); +$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] ); +$referer = remove_query_arg( 'update', wp_get_referer() ); + $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; if ( ! $id ) @@ -147,12 +150,12 @@ if ( $action ) { } restore_current_blog(); - wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) ); + wp_redirect( add_query_arg( 'update', $update, $referer ) ); exit(); } if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) { - wp_redirect( wp_get_referer() ); + wp_redirect( $referer ); exit(); }