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
This commit is contained in:
Andrew Nacin 2014-07-10 09:55:14 +00:00
parent 21eb687bb3
commit e9d2d8ead9
1 changed files with 1 additions and 0 deletions

View File

@ -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;