diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 090282062f..12d724f62c 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -1531,16 +1531,23 @@ All at ###SITENAME### $site_title = parse_url( home_url(), PHP_URL_HOST ); } - wp_mail( - $value, - sprintf( - /* translators: New admin email address notification email subject. %s: Site title. */ - __( '[%s] New Admin Email Address' ), - $site_title - ), - $content + $subject = sprintf( + /* translators: New admin email address notification email subject. %s: Site title. */ + __( '[%s] New Admin Email Address' ), + $site_title ); + /** + * Filters the subject of the email sent when a change of site admin email address is attempted. + * + * @since 6.5.0 + * + * @param string $subject Subject of the email. + */ + $subject = apply_filters( 'new_admin_email_subject', $subject ); + + wp_mail( $value, $subject, $content ); + if ( $switched_locale ) { restore_previous_locale(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5a32c0c66f..f69045f4d7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57282'; +$wp_version = '6.5-alpha-57283'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.