Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r10476 r11590  
    99
    1010    if ( ! $path || ! @is_file($path) )
    11         return '';
     11        return false;
    1212
    1313    return @file_get_contents($path);
     
    2121header("Cache-Control: public, max-age=$expires_offset");
    2222
    23 if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') ) {
     23if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) {
    2424    header('Content-Encoding: gzip');
    25     echo get_file($basepath . '/wp-tinymce.js.gz');
     25    echo $file;
    2626} else {
    2727    echo get_file($basepath . '/wp-tinymce.js');
Note: See TracChangeset for help on using the changeset viewer.