Make WordPress Core


Ignore:
Timestamp:
01/14/2009 02:18:51 PM (17 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r10349 r10357  
    6363    echo join( $results, "\n" );
    6464    die;
     65    break;
     66case 'wp-compression-test' :
     67    if ( !current_user_can( 'manage_options' ) )
     68        die('-1');
     69   
     70    if ( isset($_GET['tested']) ) {
     71        if ( 1 == $_GET['tested'] )
     72            update_option('can_compress_scripts', 1);
     73        elseif ( 0 == $_GET['tested'] )
     74            update_option('can_compress_scripts', 0);
     75    }
     76    die('0');
    6577    break;
    6678default :
Note: See TracChangeset for help on using the changeset viewer.