]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/template-loader.php
Wordpress 3.6-scripts
[autoinstalls/wordpress.git] / wp-includes / template-loader.php
index 7c72a05e13c426e0701005b4122e624d1f908c30..7051f3452b67488573eafd582d4c35e36cfc4a83 100644 (file)
@@ -6,6 +6,10 @@
 if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
        do_action('template_redirect');
 
+// Halt template load for HEAD requests. Performance bump. See #14348
+if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
+       exit();
+
 // Process feeds and trackbacks even if not using themes.
 if ( is_robots() ) :
        do_action('do_robots');
@@ -43,5 +47,3 @@ if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) :
                include( $template );
        return;
 endif;
-
-?>