mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user