[wp-trac] [WordPress Trac] #40787: REST API: Attempts to output headers without confirming headers have not been sent
WordPress Trac
noreply at wordpress.org
Thu May 18 01:29:46 UTC 2017
#40787: REST API: Attempts to output headers without confirming headers have not
been sent
------------------------------------+-----------------------
Reporter: kraftbj | Owner: jnylen0
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.8
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: rest-api
------------------------------------+-----------------------
Comment (by rmccue):
Makes sense to only send if `! headers_sent()`
Deprecated information is still useful for reporting internally-deprecated
things (it was intended to be a permanent change), but I'd say we should
follow the regular `trigger_error` behaviour and only send when `WP_DEBUG`
is on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40787#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list