[wp-trac] [WordPress Trac] #25747: The `http_api_debug` hook isn't called for all HTTP requests

WordPress Trac noreply at wordpress.org
Sat Jun 8 17:09:10 UTC 2019


#25747: The `http_api_debug` hook isn't called for all HTTP requests
--------------------------+--------------------------
 Reporter:  johnbillion   |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  HTTP API      |     Version:  2.7
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------
Changes (by johnbillion):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45504" 45504]:
 {{{
 #!CommitTicketReference repository="" revision="45504"
 HTTP API: Ensure the `http_api_debug` hook is fired for all responses.

 This means that logging and debugging functionality can access the error
 code and error message for erroneous responses under all conditions. The
 hook is not fired when a request is short-circuited with the
 `pre_http_request` filter, because this filter itself can be used in that
 situation.

 Fixes #25747
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/25747#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list