Ticket #14348: 14348-6.diff
File 14348-6.diff, 720 bytes (added by , 12 years ago) |
---|
-
wp-includes/template-loader.php
6 6 if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) 7 7 do_action('template_redirect'); 8 8 9 /** 10 * Halt template load for HEAD requests. Performance bump by eliminating output 11 * 12 * @since 3.5.0 13 */ 14 if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) { 15 add_filter( 'wp_die_ajax_handler', '_scalar_wp_die_handler' ); 16 wp_die(); 17 } 18 9 19 // Process feeds and trackbacks even if not using themes. 10 20 if ( is_robots() ) : 11 21 do_action('do_robots');