mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Moved gzip stuff into options.
git-svn-id: https://develop.svn.wordpress.org/trunk@646 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -739,10 +739,17 @@ function gzip_compression() {
|
||||
if (!$gzip_compressed) {
|
||||
$phpver = phpversion(); //start gzip compression
|
||||
if($phpver >= "4.0.4pl1") {
|
||||
if(extension_loaded("zlib")) { ob_start("ob_gzhandler"); }
|
||||
if(extension_loaded("zlib")) {
|
||||
ob_start("ob_gzhandler");
|
||||
}
|
||||
} else if($phpver > "4.0") {
|
||||
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
|
||||
if(extension_loaded("zlib")) { $do_gzip_compress = TRUE; ob_start(); ob_implicit_flush(0); header("Content-Encoding: gzip"); }
|
||||
if(extension_loaded("zlib")) {
|
||||
$do_gzip_compress = TRUE;
|
||||
ob_start();
|
||||
ob_implicit_flush(0);
|
||||
header("Content-Encoding: gzip");
|
||||
}
|
||||
}
|
||||
} //end gzip compression - that piece of script courtesy of the phpBB dev team
|
||||
$gzip_compressed=1;
|
||||
|
||||
Reference in New Issue
Block a user