Check get_site_option(WPLANG) when WP_INSTALLING in mulitiste, just not the blog's option. fixes #18783.
git-svn-id: https://develop.svn.wordpress.org/trunk@19059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
51d0bd90f6
commit
01f19e3cff
@ -36,9 +36,9 @@ function get_locale() {
|
|||||||
$locale = WPLANG;
|
$locale = WPLANG;
|
||||||
|
|
||||||
// If multisite, check options.
|
// If multisite, check options.
|
||||||
if ( is_multisite() && !defined('WP_INSTALLING') ) {
|
if ( is_multisite() ) {
|
||||||
$ms_locale = get_option('WPLANG');
|
// Don't check blog option when installing.
|
||||||
if ( $ms_locale === false )
|
if ( defined( 'WP_INSTALLING' ) || ( false === $ms_locale = get_option( 'WPLANG' ) ) )
|
||||||
$ms_locale = get_site_option('WPLANG');
|
$ms_locale = get_site_option('WPLANG');
|
||||||
|
|
||||||
if ( $ms_locale !== false )
|
if ( $ms_locale !== false )
|
||||||
|
Loading…
Reference in New Issue
Block a user