wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php:102Gets the most appropriate fallback Navigation Menu.
$requestWP_REST_RequestWP_REST_Response|WP_Error public function get_item( $request ) { $post = WP_Navigation_Fallback::get_fallback(); if ( empty( $post ) ) { return rest_ensure_response( new WP_Error( 'no_fallback_menu', __( 'No fallback menu found.' ), array( 'status' => 404 ) ) ); } $response = $this->prepare_item_for_response( $post, $request ); return $response; }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.