diff --git a/lib/rest-api.php b/lib/rest-api.php index 88354db4fe1c9..3485604d63e3b 100644 --- a/lib/rest-api.php +++ b/lib/rest-api.php @@ -41,10 +41,9 @@ function gutenberg_register_rest_routes() { continue; } - if ( post_type_supports( $post_type->name, 'revisions' ) ) { - $autosaves_controller = new WP_REST_Autosaves_Controller( $post_type->name ); - $autosaves_controller->register_routes(); - } + // Initialize the Autosaves controller. + $autosaves_controller = new WP_REST_Autosaves_Controller( $post_type->name ); + $autosaves_controller->register_routes(); } } add_action( 'rest_api_init', 'gutenberg_register_rest_routes' );