mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
REST API: Introduce search post format handler.
This allows for clients to search the used post formats via the /wp/v2/search endpoint by using a type=post-format query parameter. Fixes #51459. Props andraganescu, zieladam, noisysocks, TimothyBlynJacobs. git-svn-id: https://develop.svn.wordpress.org/trunk@49132 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -276,6 +276,7 @@ function create_initial_rest_routes() {
|
||||
$search_handlers = array(
|
||||
new WP_REST_Post_Search_Handler(),
|
||||
new WP_REST_Term_Search_Handler(),
|
||||
new WP_REST_Post_Format_Search_Handler(),
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user