From 44d9d0327d4ccfc25efb21eedb30448c62b5a953 Mon Sep 17 00:00:00 2001 From: dilipbheda Date: Fri, 11 Apr 2025 18:32:31 +0530 Subject: [PATCH 1/2] fix: check for an empty first in wp_site_admin_email_change_notification() --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 32e530a4d24b3..6b66aedf9670b 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -8123,7 +8123,7 @@ function wp_site_admin_email_change_notification( $old_email, $new_email, $optio $send = true; // Don't send the notification to the default 'admin_email' value or an empty value. - if ( 'you@example.com' === $old_email || empty( $old_email ) ) { + if ( empty( $old_email ) || 'you@example.com' === $old_email ) { $send = false; } From 5e2ef5e226c828843831600202e7962d9a0cd058 Mon Sep 17 00:00:00 2001 From: dilipbheda Date: Fri, 11 Apr 2025 19:15:04 +0530 Subject: [PATCH 2/2] fix for multisite function --- src/wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 7b87c1fb7cf74..c71e7cd50d704 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -2870,7 +2870,7 @@ function wp_network_admin_email_change_notification( $option_name, $new_email, $ $send = true; // Don't send the notification to the default 'admin_email' value or an empty value. - if ( 'you@example.com' === $old_email || empty( $old_email ) ) { + if ( empty( $old_email ) || 'you@example.com' === $old_email ) { $send = false; }