Changeset 12214
- Timestamp:
- 11/19/2009 09:46:07 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12196 r12214 92 92 die; 93 93 } elseif ( 2 == $_GET['test'] ) { 94 if ( !isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) 95 die('-1'); 94 96 if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { 95 97 header('Content-Encoding: deflate'); -
trunk/wp-admin/load-scripts.php
r11204 r12214 128 128 header("Cache-Control: public, max-age=$expires_offset"); 129 129 130 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {130 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) { 131 131 header('Vary: Accept-Encoding'); // Handle proxies 132 132 if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { -
trunk/wp-admin/load-styles.php
r11204 r12214 138 138 header("Cache-Control: public, max-age=$expires_offset"); 139 139 140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) { 141 141 header('Vary: Accept-Encoding'); // Handle proxies 142 142 if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { -
trunk/wp-includes/js/tinymce/wp-tinymce.php
r11589 r12214 1 1 <?php 2 /** 3 * Disable error reporting 4 * 5 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging 6 */ 7 error_reporting(0); 2 8 3 9 $basepath = dirname(__FILE__); … … 21 27 header("Cache-Control: public, max-age=$expires_offset"); 22 28 23 if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) { 29 if ( isset($_GET['c']) && 1 == $_GET['c'] && isset($_SERVER['HTTP_ACCEPT_ENCODING']) 30 && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) { 31 24 32 header('Content-Encoding: gzip'); 25 33 echo $file;
Note: See TracChangeset
for help on using the changeset viewer.