From 8f08a8e2e1ded9382ecb2072431e48d65e48f54b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 2 Dec 2024 17:08:20 +0000 Subject: [PATCH] I18N: Load admin translations for auto update emails. As a follow-up to [59460], make sure that admin strings are loaded when switching locales for auto update notification emails, as those strings are in a separate translation file. Props benniledl, swissspidy. Fixes #62496. Built from https://develop.svn.wordpress.org/trunk@59478 git-svn-id: http://core.svn.wordpress.org/trunk@58864 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/l10n.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index f9239f84b9..1ed9a6a1a8 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -963,7 +963,7 @@ function load_default_textdomain( $locale = null ) { return $return; } - if ( is_admin() || wp_installing() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) ) { + if ( is_admin() || wp_installing() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) || doing_action( 'wp_maybe_auto_update' ) ) { load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8794e01161..d764881ec6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59477'; +$wp_version = '6.8-alpha-59478'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.