diff --git a/includes/user/User.php b/includes/user/User.php index df1be16d658..0865c163aeb 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -1950,9 +1950,9 @@ class User implements Stringable, Authority, UserIdentity, UserEmailContact { $emailAuthentication = $config->get( MainConfigNames::EmailAuthentication ); - if ( $emailAuthentication && $type === 'changed' ) { + if ( $emailAuthentication && $type === 'changed' && $this->isEmailConfirmed() ) { // Send the user an email notifying the user of the change in registered - // email address on their previous email address + // email address on their previous verified email address $change = $str != '' ? 'changed' : 'removed'; $notificationResult = $this->sendMail( wfMessage( 'notificationemail_subject_' . $change )->text(),