WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 5 months ago

#44444 closed defect (bug) (wontfix)

CURIEs are not evaluated for link headers

Reported by: TimothyBlynJacobs Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5
Component: REST API Keywords:
Focuses: Cc:
PR Number:

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)

#1 @TimothyBlynJacobs
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.