From b7ef286e0b1c114eb20af3c30d389924ceb763dc Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 Dec 2005 08:04:55 +0000 Subject: [PATCH] Compression tweaks. git-svn-id: https://develop.svn.wordpress.org/trunk@3320 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 1 - wp-includes/js/tinymce/tiny_mce_gzip.php | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9f20b1f2ae..7d61ed43d1 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -767,7 +767,6 @@ function get_all_page_ids() { } function gzip_compression() { - if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) return false; if ( !get_settings('gzipcompression') ) return false; if ( extension_loaded('zlib') ) { diff --git a/wp-includes/js/tinymce/tiny_mce_gzip.php b/wp-includes/js/tinymce/tiny_mce_gzip.php index e6f2aed3c2..36e1fca013 100644 --- a/wp-includes/js/tinymce/tiny_mce_gzip.php +++ b/wp-includes/js/tinymce/tiny_mce_gzip.php @@ -56,10 +56,7 @@ // General options $expiresOffset = 3600 * 24 * 30; // 30 days util client cache expires - // Only gzip the contents if clients and server support it - $encodings = explode(',', strtolower($_SERVER['HTTP_ACCEPT_ENCODING'])); - if (in_array('gzip', $encodings) && function_exists('ob_gzhandler')) - @ ob_start("ob_gzhandler"); // Don't let warnings foul up the JS + gzip_compression(); // Output rest of headers header("Content-type: text/javascript; charset: UTF-8");