Opened 7 years ago
Closed 6 years ago
#44444 closed defect (bug) (wontfix)
CURIEs are not evaluated for link headers
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5 |
Component: | REST API | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (1)
Note: See
TracTickets for help on using
tickets.
I'm closing this as wont fix. Thinking upon it more, I don't think it'd be the correct behavior. The CURIE is registered to the response body. It'd also probably be a BC break at this point.