Changeset 49103 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 10/08/2020 01:30:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r49082 r49103 269 269 $controller->register_routes(); 270 270 271 $search_handlers = array( 272 new WP_REST_Post_Search_Handler(), 273 new WP_REST_Term_Search_Handler(), 274 ); 275 271 276 /** 272 277 * Filters the search handlers to use in the REST search controller. … … 278 283 * Default is only a handler for posts. 279 284 */ 280 $search_handlers = apply_filters( 'wp_rest_search_handlers', array( new WP_REST_Post_Search_Handler() ));285 $search_handlers = apply_filters( 'wp_rest_search_handlers', $search_handlers ); 281 286 282 287 $controller = new WP_REST_Search_Controller( $search_handlers );
Note: See TracChangeset
for help on using the changeset viewer.