[wp-trac] [WordPress Trac] #49116: Add Links to the REST version of a Resource in the header of the page
WordPress Trac
noreply at wordpress.org
Wed Jun 10 02:40:46 UTC 2020
#49116: Add Links to the REST version of a Resource in the header of the page
-------------------------------------------------+-------------------------
Reporter: dshanske | Owner: dshanske
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.5
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests dev- | Focuses: rest-api
feedback |
-------------------------------------------------+-------------------------
Comment (by TimothyBlynJacobs):
To @tfrommen's idea, I think we should change have a
`rest_get_current_resource_link` that would return the correct URL for the
current object. And then use that function when calling `rest_head_link`
in `rest_add_resource_link`. That way things are more reusable if someone
wants to use that data in a different way, like a admin menu node.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49116#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list