Ticket #14348: 14348-4.diff
| File 14348-4.diff, 683 bytes (added by , 15 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 // Halt template load for HEAD requests, a performance bump 10 if ( !defined('PROCEED_AFTER_HEAD') || PROCEED_AFTER_HEAD !== true ) 11 if ( $_SERVER['REQUEST_METHOD'] == 'HEAD' && apply_filters( 'exit_on_http_head', true ) ) 12 exit(); 13 9 14 // Process feeds and trackbacks even if not using themes. 10 15 if ( is_robots() ) : 11 16 do_action('do_robots');