[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 Dec 7 16:14:10 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: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"52333" 52333]:
{{{
#!CommitTicketReference repository="" revision="52333"
REST API: Pass post type name to `rest_get_route_for_post_type_items()`.
The new `rest_get_route_for_post_type_items()` function accepts a string,
not an object. This commit passes the post type name instead of the object
to resolve a notice in the site editor page.
Follow-up to [52281].
Props walbo.
Fixes #54536.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54536#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list