Make WordPress Core

Changeset 11590


Ignore:
Timestamp:
06/17/2009 01:08:05 AM (15 years ago)
Author:
azaozz
Message:

Fall back to wp-tinymce.js if wp-tinymce.js.gz doesn't exist

Location:
branches/2.8
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/includes/manifest.php

    r11507 r11590  
    9393    if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) :
    9494    $mce = array(
    95         array('../wp-includes/js/tinymce/wp-tinymce.php', 'c=1&' . $mce_ver, true),
    96         array('../wp-includes/js/tinymce/wp-tinymce.php', 'c=0&' . $mce_ver, true),
     95        array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver, true),
    9796
    9897        array('../wp-includes/js/tinymce/tiny_mce.js', $mce_ver, true),
  • 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');
  • branches/2.8/wp-includes/version.php

    r11584 r11590  
    3030 * @global string $manifest_version
    3131 */
    32 $manifest_version = '20090610';
     32$manifest_version = '20090616';
Note: See TracChangeset for help on using the changeset viewer.