Make WordPress Core

Ticket #4342: 4342.r6563.diff

File 4342.r6563.diff, 505 bytes (added by darkdragon, 17 years ago)

Patch based off of r6563

  • functions.php

     
    404404function gzip_compression() {
    405405        if ( !get_option( 'gzipcompression' ) || ini_get( 'zlib.output_compression' ) == 'On' || ini_get( 'zlib.output_compression_level' ) > 0  || ini_get( 'output_handler' ) == 'ob_gzhandler' || !extension_loaded( 'zlib' ) )
    406406                return false;
     407        ob_clean_flush();
    407408        ob_start( 'ob_gzhandler' );
    408409}
    409410