Ticket #14348: 14348-7.diff
File 14348-7.diff, 1.7 KB (added by , 12 years ago) |
---|
-
wordpress/wp-includes/default-filters.php
282 282 add_action( 'admin_init', 'register_admin_color_schemes', 1); 283 283 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 284 284 285 // Quit early on HEAD requests 286 add_action( 'head_request', 'handle_head_request' ); 287 285 288 unset($filter, $action); -
wordpress/wp-includes/functions.php
3607 3607 return true; 3608 3608 } 3609 3609 3610 /** 3611 * Halt template load for HEAD requests. Performance bump by eliminating output 3612 * 3613 * @since 3.5.0 3614 */ 3615 function handle_head_request() { 3616 if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) { 3617 $function = create_function( '', "return '_scalar_wp_die_handler';" ); 3618 add_filter( 'wp_die_handler', $function ); 3619 wp_die(); 3620 } 3621 } -
wordpress/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 do_action( 'head_request' ); 15 9 16 // Process feeds and trackbacks even if not using themes. 10 17 if ( is_robots() ) : 11 18 do_action('do_robots');