From e9d2d8ead9096bd5f988fea2d71c25877b4edf4a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 10 Jul 2014 09:55:14 +0000 Subject: [PATCH] Unload the current default textdomain in wp_install_load_language(). see #28577. Built from https://develop.svn.wordpress.org/trunk@29059 git-svn-id: http://core.svn.wordpress.org/trunk@28847 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index b62ebfa4de..bcfd192486 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -2276,6 +2276,7 @@ function wp_install_load_language( $translation ) { return false; } + unload_textdomain( 'default' ); // Start over. load_textdomain( 'default', WP_LANG_DIR . "/{$translation_to_load}.mo" ); load_textdomain( 'default', WP_LANG_DIR . "/admin-{$translation_to_load}.mo" ); return $translation_to_load;