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:
Nikolay Bachiyski 2010-05-29 15:32:43 +00:00
parent da3b4b351e
commit df34727db8
1 changed files with 5 additions and 3 deletions

View File

@ -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" );
}
}
/**