[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 08:41:33 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 mbijon):
Replying to [comment:34 mitchoyoshitaka]:
> I don't think adding another hook there is the right approach to testing
this...
it testing
Given the recent push to improve WordPress' unit tests,
http://make.wordpress.org/core/handbook/automated-testing/, Kurt's
suggestion makes a lot of sense.
I still prefer your/my method that adds a filter, but wp_die() makes
sense. Uploading a blended patch next (testing using Mitcho's manual
method & Fiddler).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14348#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list