[wp-trac] [WordPress Trac] #54536: Use rest_get_route_for_taxonomy_items and rest_get_route_for_post_type_items functions in full edit editting
WordPress Trac
noreply at wordpress.org
Tue Nov 30 15:53:03 UTC 2021
#54536: Use rest_get_route_for_taxonomy_items and
rest_get_route_for_post_type_items functions in full edit editting
------------------------------+-----------------------------
Reporter: spacedmonkey | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: rest-api
------------------------------+-----------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52281" 52281]:
{{{
#!CommitTicketReference repository="" revision="52281"
REST API: Replace hardcoded `wp/v2/` preloaded paths with
`rest_get_route_for_taxonomy_items()` and
`rest_get_route_for_post_type_items()` in `wp-admin/site-editor.php`.
[51962] and [51964] introduced two new functions:
`rest_get_route_for_post_type_items()` and
`rest_get_route_for_taxonomy_items()`. These functions replaced hardcoded
references in all parts of core that reference taxonomy and post type rest
controller endpoints. However, several instances were missed in the `wp-
admin/site-editor.php` file.
This commit replaces those remaining hardcoded instances.
Follow-up to [51962], [51964], [52232].
Props spacedmonkey.
Fixes #54536.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54536#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list