From 6f108ce6f39b2627f3786c57e38757b84751fdbe Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 10 Feb 2008 07:12:33 +0000 Subject: [PATCH] Remove gzip_compression(). Leave it to the server. fixes #4342 git-svn-id: http://svn.automattic.com/wordpress/trunk@6775 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-reading.php | 4 ---- wp-blog-header.php | 1 - wp-includes/functions.php | 7 ------- 3 files changed, 12 deletions(-) diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index cfc9005570..1b5fd809b0 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -116,10 +116,6 @@ endforeach; recommended)') ?> -

- -

diff --git a/wp-blog-header.php b/wp-blog-header.php index 00d3ccd5d3..0e2db8b6e6 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -16,7 +16,6 @@ $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-config.php'); wp(); -gzip_compression(); require_once(ABSPATH . WPINC . '/template-loader.php'); diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 21e8d5ca34..aea7e9397b 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -403,13 +403,6 @@ function maybe_serialize( $data ) { } -function gzip_compression() { - 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' ) ) - return false; - ob_start( 'ob_gzhandler' ); -} - - function make_url_footnote( $content ) { preg_match_all( '/(.+?)<\/a>/', $content, $matches ); $j = 0;