Make WordPress Core


Ignore:
Timestamp:
10/12/2020 07:52:57 PM (5 years ago)
Author:
TimothyBlynJacobs
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r49120 r49132  
    277277        new WP_REST_Post_Search_Handler(),
    278278        new WP_REST_Term_Search_Handler(),
     279        new WP_REST_Post_Format_Search_Handler(),
    279280    );
    280281
Note: See TracChangeset for help on using the changeset viewer.