mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@34912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1163,13 +1163,13 @@ function script_concat_settings() {
|
||||
|
||||
if ( ! isset($compress_scripts) ) {
|
||||
$compress_scripts = defined('COMPRESS_SCRIPTS') ? COMPRESS_SCRIPTS : true;
|
||||
if ( $compress_scripts && ( ! get_network_option( 'can_compress_scripts' ) || $compressed_output ) )
|
||||
if ( $compress_scripts && ( ! get_site_option('can_compress_scripts') || $compressed_output ) )
|
||||
$compress_scripts = false;
|
||||
}
|
||||
|
||||
if ( ! isset($compress_css) ) {
|
||||
$compress_css = defined('COMPRESS_CSS') ? COMPRESS_CSS : true;
|
||||
if ( $compress_css && ( ! get_network_option( 'can_compress_scripts' ) || $compressed_output ) )
|
||||
if ( $compress_css && ( ! get_site_option('can_compress_scripts') || $compressed_output ) )
|
||||
$compress_css = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user