[wp-trac] [WordPress Trac] #39965: REST API: Introduce a controller for searching across post types
WordPress Trac
noreply at wordpress.org
Thu Dec 13 09:37:09 UTC 2018
#39965: REST API: Introduce a controller for searching across post types
------------------------------------------------+-----------------------
Reporter: iseulde | Owner: flixos90
Type: enhancement | Status: closed
Priority: high | Milestone: 5.0
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests fixed-5.0 | Focuses: rest-api
------------------------------------------------+-----------------------
Changes (by pento):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"44107" 44107]:
{{{
#!CommitTicketReference repository="" revision="44107"
REST API: Introduce controller for searching across post types.
Introduces a `WP_REST_Search_Controller` class which registers a
`/wp/v2/search` endpoint. Search types are handled by extending
`WP_REST_Search_Handler`. The default search type is
`WP_REST_Post_Search_Handler` but can be filtered by plugins or a theme.
Merges [43739,43741] from the 5.0 branch to trunk.
Props danielbachhuber, flixos90, pento, rmccue, joehoyle.
Fixes #39965.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39965#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list