WordPress.org

Make WordPress Core

Opened 4 weeks ago

#44444 new defect (bug)

CURIEs are not evaluated for link headers

Reported by: TimothyBlynJacobs Owned by:
Milestone: Awaiting Review 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 (0)

Note: See TracTickets for help on using tickets.