Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14348, comment 39


Ignore:
Timestamp:
08/12/2012 05:24:38 AM (12 years ago)
Author:
mitchoyoshitaka
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14348, comment 39

    initial v1  
    44> This also has the side effect of creating an action (head_request) that can be reused in plugins.
    55
    6 
    7 Two thoughts:
     6Thanks Kurt! Two thoughts:
    87
    981. I don't think the action `head_request` and triggering it in the tests is the best way to test this. Why not simply set `$_SERVER['REQUEST_METHOD'] = 'HEAD'` and check that it ends with no input? The semantics of `head_request` are also odd: it's triggered even if it's not a HEAD request?