[wp-trac] [WordPress Trac] #50529: REST API: Update post search handler to use rest_get_route_for_post()
WordPress Trac
noreply at wordpress.org
Tue Jul 7 15:29:37 UTC 2020
#50529: REST API: Update post search handler to use rest_get_route_for_post()
--------------------------------------+--------------------------------
Reporter: TimothyBlynJacobs | Owner: TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48381" 48381]:
{{{
#!CommitTicketReference repository="" revision="48381"
REST API: Use new `rest_get_route_for_post()` in the post search handler.
In [48273] the rest_get_route_for_post function was introduced. This
simplifies determining the REST API route for any given post object and
adds a filter for custom controllers.
Props ravatparmar.
Fixes #50529.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50529#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list