diff --git a/wp-blog-header.php b/wp-blog-header.php index d6b75731d8..4595c6a52f 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -186,6 +186,11 @@ if ( (0 == count($posts)) && !is_404() && !is_search() header('HTTP/1.x 404 Not Found'); } +if ($pagenow != 'post.php' && $pagenow != 'edit.php') { + if ( get_settings('gzipcompression') ) + gzip_compression(); +} + // Template redirection if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { do_action('template_redirect'); @@ -240,10 +245,5 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { } } -if ($pagenow != 'post.php' && $pagenow != 'edit.php') { - if ( get_settings('gzipcompression') ) - gzip_compression(); -} - endif; ?> \ No newline at end of file