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:
parent
62b662cc14
commit
9cda4c5982
|
@ -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>'
|
'<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;
|
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||||
|
|
||||||
if ( ! $id )
|
if ( ! $id )
|
||||||
|
@ -147,12 +150,12 @@ if ( $action ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) );
|
wp_redirect( add_query_arg( 'update', $update, $referer ) );
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
||||||
wp_redirect( wp_get_referer() );
|
wp_redirect( $referer );
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue