wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php:183Prepares the links for the request.
$postWP_Postarray private function prepare_links( $post ) { return array( 'self' => array( 'href' => rest_url( rest_get_route_for_post( $post->ID ) ), 'embeddable' => true, ), ); }Introduced in 6.3.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/endpoints/class-wp-rest-navigation-fallback-controller.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.