- Timestamp:
- 03/15/2024 11:23:18 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
r57648 r57839 396 396 $type = $request->get_param( self::PROP_TYPE ); 397 397 398 if ( ! $type || ! is set( $this->search_handlers[ $type ] ) ) {398 if ( ! $type || ! is_string( $type ) || ! isset( $this->search_handlers[ $type ] ) ) { 399 399 return new WP_Error( 400 400 'rest_search_invalid_type',
Note: See TracChangeset
for help on using the changeset viewer.