mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 14:22:26 +01:00
Load multisite strings POT file only on multisite requests. Fixes #13565
git-svn-id: http://svn.automattic.com/wordpress/trunk@15053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92eeafce24
commit
ad5f0e1b02
@ -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