[wp-trac] [WordPress Trac] #34707: Separate out the namespace from the path in rest_url
WordPress Trac
noreply at wordpress.org
Tue Nov 17 02:55:54 UTC 2015
#34707: Separate out the namespace from the path in rest_url
--------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
From [https://github.com/WP-API/WP-API/issues/1504 API#1504], discussed
briefly in #34302; PR on https://github.com/WP-API/api-core/pull/4.
Everywhere else we deal with URLs, we specify namespace and route
separately, except when generating URLs.
This changes to no longer match the format of
`get_home_url`/`get_site_url`/`get_admin_url` (blog ID, path, scheme),
however there are already a few that don't follow this format:
* `get_dashboard_url` (user, path, scheme)
* `get_edit_profile_url` (user, scheme)
* `get_site_icon_url` (size, URL, blog).
This also breaks compatibility with existing versions of the API.
If we want to pull the trigger, we need to do it ''now''.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34707>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list