wp/wp-admin/includes/admin.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
--- a/wp/wp-admin/includes/admin.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/includes/admin.php	Fri Sep 05 18:40:08 2025 +0200
@@ -13,7 +13,9 @@
 	 * some setup was skipped. Make sure the admin message catalog is loaded since
 	 * load_default_textdomain() will not have done so in this context.
 	 */
-	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
+	$admin_locale = get_locale();
+	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );
+	unset( $admin_locale );
 }
 
 /** WordPress Administration Hooks */