Revert [34778], continue using _site_option() for the current network.
The `_network_option()` parameter order will be changing to accept `$network_id` first. The `_site_option()` functions will remain in use throughout core as our way of retrieving a network option for the current network. See #28290. Built from https://develop.svn.wordpress.org/trunk@34912 git-svn-id: http://core.svn.wordpress.org/trunk@34877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -54,7 +54,7 @@ function get_locale() {
|
||||
if ( is_multisite() ) {
|
||||
// Don't check blog option when installing.
|
||||
if ( wp_installing() || ( false === $ms_locale = get_option( 'WPLANG' ) ) ) {
|
||||
$ms_locale = get_network_option( 'WPLANG' );
|
||||
$ms_locale = get_site_option( 'WPLANG' );
|
||||
}
|
||||
|
||||
if ( $ms_locale !== false ) {
|
||||
|
||||
Reference in New Issue
Block a user