diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 641e518640..d99ce2bd23 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1551,7 +1551,9 @@ function wp_tiny_mce( $teeny = false, $settings = false ) { script_concat_settings(); $language = $initArray['language']; - $zip = $compress_scripts ? 1 : 0; + + $compressed = $compress_scripts && $concatenate_scripts && isset($_SERVER['HTTP_ACCEPT_ENCODING']) + && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip'); /** * Deprecated @@ -1585,8 +1587,8 @@ tinyMCEPreInit = { \n"; + if ( $compressed ) + echo "\n"; else echo "\n"; @@ -1599,7 +1601,7 @@ tinyMCEPreInit = {