Make WordPress Core

Changeset 57504


Ignore:
Timestamp:
01/31/2024 09:26:55 PM (9 months ago)
Author:
swissspidy
Message:

I18N: Load new translation library in wp_load_translations_early().

Ensures localization continues to work as expected with the new library in case
translations need to be loaded early in the process.

See #59656.

File:
1 edited

Legend:

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

    r57312 r57504  
    14851485    // Translation and localization.
    14861486    require_once ABSPATH . WPINC . '/pomo/mo.php';
     1487    require_once ABSPATH . WPINC . '/l10n/class-wp-translation-controller.php';
     1488    require_once ABSPATH . WPINC . '/l10n/class-wp-translations.php';
     1489    require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file.php';
     1490    require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file-mo.php';
     1491    require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file-php.php';
    14871492    require_once ABSPATH . WPINC . '/l10n.php';
    14881493    require_once ABSPATH . WPINC . '/class-wp-textdomain-registry.php';
Note: See TracChangeset for help on using the changeset viewer.