[wp-trac] [WordPress Trac] #34707: Separate out the namespace from the path in rest_url
WordPress Trac
noreply at wordpress.org
Tue Nov 17 14:47:01 UTC 2015
#34707: Separate out the namespace from the path in rest_url
--------------------------+------------------------------
Reporter: rmccue | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Comment (by danielbachhuber):
Aside from consistency, are there any pragmatic advantages to separating
the namespace and path in `get_rest_url()`? I can't think of any.
> Everywhere else we deal with URLs, we specify namespace and route
separately, except when generating URLs.
I think this is fine. Elsewhere, specifying the namespace and route
separately has a pragmatic application. Given `get_rest_url()` is largely
just a wrapper for `home_url()`, I don't see the inconsistency as an issue
needing to be fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34707#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list