From e13538717235a5525bdb0c1f5d8f1aea44a862ea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 1 Feb 2013 01:50:19 +0000 Subject: [PATCH] Only show "There is a pending change of your e-mail..." message on the current user's profile page. fixes #23146. git-svn-id: https://develop.svn.wordpress.org/trunk@23364 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/user-edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index eadc1f08eb..a72ac9a441 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -337,7 +337,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c ID . '_new_email' ); - if ( $new_email && $new_email != $current_user->user_email ) : ?> + if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?>

%1$s. Cancel'), $new_email['newemail'], esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?>