Make WordPress Core

Changeset 59478


Ignore:
Timestamp:
12/02/2024 05:06:29 PM (4 months ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r59430 r59478  
    964964    }
    965965
    966     if ( is_admin() || wp_installing() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) ) {
     966    if ( is_admin() || wp_installing() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) || doing_action( 'wp_maybe_auto_update' ) ) {
    967967        load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale );
    968968    }
Note: See TracChangeset for help on using the changeset viewer.