summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-wp-locale-switcher.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
commitfa9a33d818470a5796f0ff8797f98b510ed8de18 (patch)
treebde6a1eede376f9b5df5898ce812330152984d8e /wp-includes/class-wp-locale-switcher.php
parentReleasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz
wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/class-wp-locale-switcher.php')
-rw-r--r--wp-includes/class-wp-locale-switcher.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-includes/class-wp-locale-switcher.php b/wp-includes/class-wp-locale-switcher.php
index d07490f..9f1c483 100644
--- a/wp-includes/class-wp-locale-switcher.php
+++ b/wp-includes/class-wp-locale-switcher.php
@@ -283,6 +283,8 @@ class WP_Locale_Switcher {
$wp_locale = new WP_Locale();
+ WP_Translation_Controller::get_instance()->set_locale( $locale );
+
/**
* Fires when the locale is switched to or restored.
*