wp-includes/rest-api/search/class-wp-rest-post-search-handler.php:212Attempts to detect the route to access a single item.
$postWP_Poststring protected function detect_rest_item_route( $post ) { _deprecated_function( __METHOD__, '5.5.0', 'rest_get_route_for_post()' ); return rest_get_route_for_post( $post ); }Introduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.