Make WordPress Core


Ignore:
Timestamp:
01/30/2009 01:45:05 PM (18 years ago)
Author:
azaozz
Message:

Support output_handler = ob_gzhandler in script/style compressor, props DD32, fixes #9000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-scripts.php

    r10442 r10466  
    9090
    9191if ( isset($_GET['test']) && 1 == $_GET['test'] ) {
    92         if ( ini_get('zlib.output_compression') )
     92        if ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') )
    9393                exit('');
    9494
     
    144144header("Cache-Control: public, max-age=$expires_offset");
    145145       
    146 if ( $compress && ! ini_get('zlib.output_compression') ) {
     146if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {
    147147        header('Vary: Accept-Encoding'); // Handle proxies
    148148        if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
Note: See TracChangeset for help on using the changeset viewer.