equal
deleted
inserted
replaced
3 * Loads the correct template based on the visitor's url |
3 * Loads the correct template based on the visitor's url |
4 * @package WordPress |
4 * @package WordPress |
5 */ |
5 */ |
6 if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) |
6 if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) |
7 do_action('template_redirect'); |
7 do_action('template_redirect'); |
|
8 |
|
9 // Halt template load for HEAD requests. Performance bump. See #14348 |
|
10 if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) |
|
11 exit(); |
8 |
12 |
9 // Process feeds and trackbacks even if not using themes. |
13 // Process feeds and trackbacks even if not using themes. |
10 if ( is_robots() ) : |
14 if ( is_robots() ) : |
11 do_action('do_robots'); |
15 do_action('do_robots'); |
12 return; |
16 return; |