Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44534, comment 13


Ignore:
Timestamp:
10/10/2018 05:40:18 PM (6 years ago)
Author:
duanestorey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44534, comment 13

    initial v1  
    33> The `/wp-json/` path is filterable, which would happen much later in the stack, so I think inspecting `Content-Type` is more reliable and precise.
    44
    5 Your talking about the response header? Wouldn't that only get set once WP understands that it's a REST response, which is basically too late (ie after the debug init)?  I would think as soon as a debug statement was echoed the web server would output all response headers, which then wouldn't work for detection. Or am I misunderstanding?
     5You're talking about the response header? Wouldn't that only get set once WP understands that it's a REST response, which is basically too late (ie after the debug init)?  I would think as soon as a debug statement was echoed the web server would output all response headers, which then wouldn't work for detection. Or am I misunderstanding?