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");