_print_scripts

Definition:
function _print_scripts() {}

Source code

function _print_scripts() {

	global $wp_scripts, $compress_scripts;



	$zip = $compress_scripts ? 1 : 0;

	if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )

		$zip = 'gzip';



	if ( !empty($wp_scripts->concat) ) {



		if ( !empty($wp_scripts->print_code) ) {

			echo "\n<script type='text/javascript'>\n";

			echo "/* <![CDATA[ */\n"; // not needed in HTML 5

			echo $wp_scripts->print_code;

			echo "/* ]]> */\n";

			echo "</script>\n";

		}



		$ver = md5("$wp_scripts->concat_version");

		$src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . "&ver=$ver";

		echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";

	}

4359

About these ads

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

Follow

Get every new post delivered to your Inbox.

Join 191 other followers

%d bloggers like this: