[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 04:47:55 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-unit-tests dev-feedback | Focuses: rest-api
-------------------------------------------+-----------------------
Changes (by dshanske):
* keywords: needs-patch needs-unit-tests dev-feedback => needs-unit-tests
dev-feedback
Comment:
@TimothyBlynJacobs @tfrommen I tried to incorporate the suggestions made.
In order to do so, I added a get_rest_controller to WP_Taxonomy to match
the one introduced in 5.3 to WP_Post_Type, as I thought this was more
consistent than the alternatives.
So, this has the advantage of improving the return. The
get_rest_controller function returns the Post Controller if there is no
controller explicitly but show_in_rest is set to true...which I'm
mirroring now in the WP_Taxonomy class.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49116#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list