Changeset 5810 for trunk/wp-includes/functions.php
- Timestamp:
- 07/18/2007 09:12:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r5801 r5810 395 395 396 396 function gzip_compression() { 397 if ( !get_option('gzipcompression') ) return false; 398 399 if ( extension_loaded('zlib') ) { 400 ob_start('ob_gzhandler'); 397 if ( !get_option( 'gzipcompression' ) ) { 398 return false; 399 } 400 401 if ( ( ini_get( 'zlib.output_compression' ) == 'On' || ini_get( 'zlib.output_compression_level' ) > 0 ) || ini_get( 'output_handler' ) == 'ob_gzhandler' ) { 402 return false; 403 } 404 405 if ( extension_loaded( 'zlib' ) ) { 406 ob_start( 'ob_gzhandler' ); 401 407 } 402 408 }
Note: See TracChangeset
for help on using the changeset viewer.