Advertisements

script_concat_settings

Definition:
function script_concat_settings() {}

Determine the concatenation and compression settings for scripts and styles.

Source code

function script_concat_settings() {

	global $concatenate_scripts, $compress_scripts, $compress_css;



	$compressed_output = ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') );



	if ( ! isset($concatenate_scripts) ) {

		$concatenate_scripts = defined('CONCATENATE_SCRIPTS') ? CONCATENATE_SCRIPTS : true;

		if ( ! is_admin() || ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) )

			$concatenate_scripts = false;

	}



	if ( ! isset($compress_scripts) ) {

		$compress_scripts = defined('COMPRESS_SCRIPTS') ? COMPRESS_SCRIPTS : true;

		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_site_option('can_compress_scripts') || $compressed_output ) )

			$compress_css = false;

	}

}

2815

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: