[wp-trac] [WordPress Trac] #34729: Use short CURIEs instead of full URIs

WordPress Trac noreply at wordpress.org
Tue Mar 22 00:15:51 UTC 2016

#34729: Use short CURIEs instead of full URIs
 Reporter:  rmccue          |       Owner:  joehoyle
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.5
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  needs-patch     |     Focuses:
Changes (by joehoyle):

 * status:  reopened => closed
 * resolution:   => fixed


 In [changeset:"37041"]:
 #!CommitTicketReference repository="" revision="37041"
 REST API: Provide better method for generating CURIEs

 In [36533] CURIEs were added to the API responses for the link relation
 URIs, this makes
 it a lot easier for clients to look up links by relation. That patch was
 functional, but
 broke on edge cases such as embedded responses and collection items with
 links in the items.

 This patch instead takes a less obtrusive approach by creating a new
 to compliment `get_response_links` making both old and new functionality

 Also the regex for curie relations has been relaxed to `.+` as rel names
 can have any uri-valid charector in it.

 Fixes #34729.

Ticket URL: <https://core.trac.wordpress.org/ticket/34729#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list