rolling back the ob_gzhandler 'fix' because ob_get_status is php >4.1
git-svn-id: https://develop.svn.wordpress.org/trunk@1426 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d596c91d88
commit
3b8afed11f
|
@ -432,12 +432,9 @@ function gzip_compression() {
|
||||||
if ( !get_settings('gzipcompression') ) return false;
|
if ( !get_settings('gzipcompression') ) return false;
|
||||||
|
|
||||||
if( extension_loaded('zlib') ) {
|
if( extension_loaded('zlib') ) {
|
||||||
$ob_status = ob_get_status();
|
|
||||||
if (empty($ob_status) || $ob_status['name'] != 'ob_gzhandler') {
|
|
||||||
ob_start('ob_gzhandler');
|
ob_start('ob_gzhandler');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// functions to count the page generation time (from phpBB2)
|
// functions to count the page generation time (from phpBB2)
|
||||||
|
|
Loading…
Reference in New Issue