[wp-trac] [WordPress Trac] #14348: If it's a HEAD request, stop after the head!

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 11 19:42:11 UTC 2012


#14348: If it's a HEAD request, stop after the head!
---------------------------------------------+------------------
 Reporter:  mitchoyoshitaka                  |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  3.5
Component:  Performance                      |     Version:  3.0
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch 3.5-early 2nd-opinion  |
---------------------------------------------+------------------

Comment (by kurtpayne):

 Replying to [comment:37 mitchoyoshitaka]:
 > kurtpayne, mbijon: I'm really really confused by this approach:
 >
 > > add_filter( 'wp_die_ajax_handler', '_scalar_wp_die_handler' );

 That's a typo.  Good catch!

 Take a look at the updated patch and associated unit test.

 This also has the side effect of creating an action (head_request) that
 can be reused in plugins.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14348#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list