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
This commit is contained in:
nacin 2011-11-22 05:55:55 +00:00
parent 62b662cc14
commit 9cda4c5982
1 changed files with 5 additions and 2 deletions

View File

@ -33,6 +33,9 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
);
$_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();
}