mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Multisite: Add a nonce to the "Cancel" URL when changing a site's admin email.
Props scottbasgaard. Fixes #36954. git-svn-id: https://develop.svn.wordpress.org/trunk@38006 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -66,6 +66,7 @@ if ( is_multisite() ) {
|
||||
wp_redirect( admin_url( $redirect ) );
|
||||
exit;
|
||||
} elseif ( ! empty( $_GET['dismiss'] ) && 'new_admin_email' == $_GET['dismiss'] ) {
|
||||
check_admin_referer( 'dismiss-' . get_current_blog_id() . '-new_admin_email' );
|
||||
delete_option( 'adminhash' );
|
||||
delete_option( 'new_admin_email' );
|
||||
wp_redirect( admin_url( 'options-general.php?updated=true' ) );
|
||||
|
||||
Reference in New Issue
Block a user