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
This commit is contained in:
Pascal Birchler 2024-12-02 17:08:20 +00:00
parent 369a675488
commit 8f08a8e2e1
2 changed files with 2 additions and 2 deletions

View File

@ -963,7 +963,7 @@ function load_default_textdomain( $locale = null ) {
return $return; 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 ); load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.