Split the script queue in head and footer part, concatenate and compress the default js and css, first run, see #8628

git-svn-id: https://develop.svn.wordpress.org/trunk@10357 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-01-14 14:18:51 +00:00
parent 1677a33778
commit 22eddf34d2
10 changed files with 726 additions and 58 deletions

View File

@@ -63,6 +63,18 @@ case 'ajax-tag-search' :
echo join( $results, "\n" );
die;
break;
case 'wp-compression-test' :
if ( !current_user_can( 'manage_options' ) )
die('-1');
if ( isset($_GET['tested']) ) {
if ( 1 == $_GET['tested'] )
update_option('can_compress_scripts', 1);
elseif ( 0 == $_GET['tested'] )
update_option('can_compress_scripts', 0);
}
die('0');
break;
default :
do_action( 'wp_ajax_' . $_GET['action'] );
die('0');