diff --git a/wp-includes/functions.php b/wp-includes/functions.php index e4967a9bd2..599a964a57 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -8090,8 +8090,8 @@ function wp_cache_set_last_changed( $group ) { function wp_site_admin_email_change_notification( $old_email, $new_email, $option_name ) { $send = true; - // Don't send the notification to the default 'admin_email' value. - if ( 'you@example.com' === $old_email ) { + // Don't send the notification to the default 'admin_email' value or an empty value. + if ( 'you@example.com' === $old_email || empty( $old_email ) ) { $send = false; } diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 1f890dab69..b3fc55a6d3 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -2869,8 +2869,8 @@ All at ###SITENAME### function wp_network_admin_email_change_notification( $option_name, $new_email, $old_email, $network_id ) { $send = true; - // Don't send the notification to the default 'admin_email' value. - if ( 'you@example.com' === $old_email ) { + // Don't send the notification to the default 'admin_email' value or an empty value. + if ( 'you@example.com' === $old_email || empty( $old_email ) ) { $send = false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e31409f970..38e2853097 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60128'; +$wp_version = '6.9-alpha-60129'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.