WordPress.org

Make WordPress Core

Changeset 11589


Ignore:
Timestamp:
06/17/2009 01:06:32 AM (9 years ago)
Author:
azaozz
Message:

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

Location:
trunk
Files:
3 edited

Legend:

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

    r11507 r11589  
    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),
  • trunk/wp-includes/js/tinymce/wp-tinymce.php

    r10476 r11589  
    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');
  • trunk/wp-includes/version.php

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