[wp-trac] [WordPress Trac] #38607: Add `rest_base` to response objects of `wp/v2/taxonomies` and `wp/v2/types` on the REST Api
WordPress Trac
noreply at wordpress.org
Wed Nov 2 02:49:47 UTC 2016
#38607: Add `rest_base` to response objects of `wp/v2/taxonomies` and
`wp/v2/types` on the REST Api
--------------------------------------+------------------------------
Reporter: youknowriad | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by rmccue):
Previously discussed in https://github.com/WP-API/WP-API/issues/1381
We want to avoid exposing the raw value of `rest_base` in favour of
exposing links that use them. Exposing the raw value encourages manual URL
building, but we're trying to heavily encourage using the URLs. This may
change based on #38439 however.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38607#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list