Remove 'update' from site-users.php on redirect. props PeteMall, fixes #18895.
git-svn-id: https://develop.svn.wordpress.org/trunk@19394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ab205ada4
commit
421ac2155d
@ -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…
x
Reference in New Issue
Block a user