Changeset 17630 for trunk/wp-admin/load-styles.php
- Timestamp:
- 04/11/2011 06:55:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/load-styles.php
r12878 r17630 135 135 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) { 136 136 header('Vary: Accept-Encoding'); // Handle proxies 137 if ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {137 if ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { 138 138 header('Content-Encoding: deflate'); 139 139 $out = gzdeflate( $out, 3 ); 140 } elseif ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) {140 } elseif ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) { 141 141 header('Content-Encoding: gzip'); 142 142 $out = gzencode( $out, 3 );
Note: See TracChangeset
for help on using the changeset viewer.