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:
parent
21eb687bb3
commit
e9d2d8ead9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue