Make WordPress Core


Ignore:
Timestamp:
02/01/2009 09:45:24 AM (16 years ago)
Author:
azaozz
Message:

Detect when the server compresses output, see #8628

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/wp-tinymce.php

    r10372 r10476  
    22
    33$basepath = dirname(__FILE__);
    4 
    5 while ( @ob_end_clean() );
    64
    75function get_file($path) {
     
    2321header("Cache-Control: public, max-age=$expires_offset");
    2422
    25 if ( isset($_GET['c']) && 1 == $_GET['c'] && ! ini_get('zlib.output_compression') && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') ) {
     23if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') ) {
    2624    header('Content-Encoding: gzip');
    2725    echo get_file($basepath . '/wp-tinymce.js.gz');
Note: See TracChangeset for help on using the changeset viewer.