mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 07:14:28 +00:00
Make can_compress_scripts a site option. Add site option wrappers for WP.
git-svn-id: https://develop.svn.wordpress.org/trunk@10593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -686,13 +686,13 @@ function script_concat_settings() {
|
||||
|
||||
if ( ! isset($compress_scripts) ) {
|
||||
$compress_scripts = defined('COMPRESS_SCRIPTS') ? COMPRESS_SCRIPTS : true;
|
||||
if ( $compress_scripts && ( ! get_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_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