diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 8ebb78d781..368437aa39 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -74,6 +74,10 @@ if ( is_multisite() && IS_PROFILE_PAGE && isset( $_GET[ 'newuseremail' ] ) && $c wp_redirect( add_query_arg( array('updated' => 'true'), admin_url( 'profile.php' ) ) ); die(); } +} elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' == $_GET['dismiss'] ) { + delete_option( $current_user->ID . '_new_email' ); + wp_redirect( add_query_arg( array('updated' => 'true'), admin_url( 'profile.php' ) ) ); + die(); } switch ($action) { @@ -285,7 +289,15 @@ else
- | + |
+ ID . '_new_email' );
+ if ( $new_email && $new_email != $current_user->user_email ) : ?>
+
+
+
+ %1$s. Cancel'), $new_email['newemail'], esc_url( admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?> + |
---|---|---|