From fa9a33d818470a5796f0ff8797f98b510ed8de18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:57:30 +0200 Subject: Merging upstream version 6.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/class-wp-locale-switcher.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wp-includes/class-wp-locale-switcher.php') 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. * -- cgit v1.2.3