From e9b8c1cd49f935e1862fbd499bf73fd665cb4db9 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 31 Jan 2024 21:28:15 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@57504 git-svn-id: http://core.svn.wordpress.org/trunk@57005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 0dbbc187cf..6c28453b21 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -1484,6 +1484,11 @@ function wp_load_translations_early() { // Translation and localization. require_once ABSPATH . WPINC . '/pomo/mo.php'; + require_once ABSPATH . WPINC . '/l10n/class-wp-translation-controller.php'; + require_once ABSPATH . WPINC . '/l10n/class-wp-translations.php'; + require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file.php'; + require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file-mo.php'; + require_once ABSPATH . WPINC . '/l10n/class-wp-translation-file-php.php'; require_once ABSPATH . WPINC . '/l10n.php'; require_once ABSPATH . WPINC . '/class-wp-textdomain-registry.php'; require_once ABSPATH . WPINC . '/class-wp-locale.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0fcf104a74..fe4c4d9019 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57503'; +$wp_version = '6.5-alpha-57504'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.