Check get_site_option(WPLANG) when WP_INSTALLING in mulitiste, just not the blog's option. fixes #18783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1154e4b468
commit
935a533eb6
|
@ -36,9 +36,9 @@ function get_locale() {
|
|||
$locale = WPLANG;
|
||||
|
||||
// If multisite, check options.
|
||||
if ( is_multisite() && !defined('WP_INSTALLING') ) {
|
||||
$ms_locale = get_option('WPLANG');
|
||||
if ( $ms_locale === false )
|
||||
if ( is_multisite() ) {
|
||||
// Don't check blog option when installing.
|
||||
if ( defined( 'WP_INSTALLING' ) || ( false === $ms_locale = get_option( 'WPLANG' ) ) )
|
||||
$ms_locale = get_site_option('WPLANG');
|
||||
|
||||
if ( $ms_locale !== false )
|
||||
|
|
Loading…
Reference in New Issue