Skip to content

Commit 44d9d03

Browse files
committed
fix: check for an empty first in wp_site_admin_email_change_notification()
1 parent a04a13a commit 44d9d03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8123,7 +8123,7 @@ function wp_site_admin_email_change_notification( $old_email, $new_email, $optio
81238123
$send = true;
81248124

81258125
// Don't send the notification to the default 'admin_email' value or an empty value.
8126-
if ( '[email protected]' === $old_email || empty( $old_email ) ) {
8126+
if ( empty( $old_email ) || '[email protected]' === $old_email ) {
81278127
$send = false;
81288128
}
81298129

0 commit comments

Comments
 (0)