Changes from trunk/wp-includes/js/tinymce/wp-tinymce.php at r10476 to branches/2.8/wp-includes/js/tinymce/wp-tinymce.php at r11590
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/js/tinymce/wp-tinymce.php
r10476 r11590 9 9 10 10 if ( ! $path || ! @is_file($path) ) 11 return '';11 return false; 12 12 13 13 return @file_get_contents($path); … … 21 21 header("Cache-Control: public, max-age=$expires_offset"); 22 22 23 if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') ) {23 if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) { 24 24 header('Content-Encoding: gzip'); 25 echo get_file($basepath . '/wp-tinymce.js.gz');25 echo $file; 26 26 } else { 27 27 echo get_file($basepath . '/wp-tinymce.js');
Note: See TracChangeset
for help on using the changeset viewer.