mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user