[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 00:50:08 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
------------------------------------+-----------------------
Changes (by jnylen0):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 There are various filters that run after the API sends its output. One
 example from WP.com used `shutdown` I think.  This was pretty annoying to
 work around.

 I would actually​ prefer to remove these headers entirely, because I don't
 think we should be exposing this information about the site.  They were
 originally introduced during the migration from WP-API v1 to v2
 ([https://github.com/WP-API/WP-API/pull/211#issuecomment-44918175 ref]),
 and they've finished serving that purpose long ago.

 Marking as `dev-feedback` to get a 2nd opinion on just ripping this code
 out.

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


More information about the wp-trac mailing list