Load multisite strings POT file only on multisite requests. Fixes #13565
git-svn-id: https://develop.svn.wordpress.org/trunk@15053 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da3b4b351e
commit
df34727db8
@ -365,9 +365,11 @@ function unload_textdomain( $domain ) {
|
||||
function load_default_textdomain() {
|
||||
$locale = get_locale();
|
||||
|
||||
$mofile = WP_LANG_DIR . "/$locale.mo";
|
||||
|
||||
return load_textdomain( 'default', $mofile );
|
||||
load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
|
||||
|
||||
if ( is_multisite() || ( defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) ) {
|
||||
load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user