[wp-trac] [WordPress Trac] #44444: CURIEs are not evaluated for link headers

WordPress Trac noreply at wordpress.org
Sun Jun 24 03:17:30 UTC 2018


#44444: CURIEs are not evaluated for link headers
-------------------------------+-----------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  REST API           |    Version:  4.5
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 A registered CURIE is not used when adding a link via
 `WP_REST_Response::link_header()`.

 The most straightforward to fix this would be to do it in the
 `WP_REST_Response` object, but that would be modifying the original
 response object which we don't do in the existing CURIE handler.

 Alternately, we'd modify the headers before they are sent in
 `WP_REST_Server::serve_request()` and do the string replace on the
 complete `Link` header string.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44444>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list