mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Clean up [22347] a bit. see #14348
git-svn-id: http://core.svn.wordpress.org/trunk@22353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e51d043ab
commit
163ef62822
@ -6,13 +6,9 @@
|
|||||||
if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
|
if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
|
||||||
do_action('template_redirect');
|
do_action('template_redirect');
|
||||||
|
|
||||||
/**
|
// Halt template load for HEAD requests. Performance bump. See #14348
|
||||||
* Halt template load for HEAD requests. Performance bump by eliminating output
|
|
||||||
*
|
|
||||||
* @since 3.5.0
|
|
||||||
*/
|
|
||||||
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
|
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
// Process feeds and trackbacks even if not using themes.
|
// Process feeds and trackbacks even if not using themes.
|
||||||
if ( is_robots() ) :
|
if ( is_robots() ) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user