diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index d035acb045140..eb706fdda942f 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -592,6 +592,7 @@ function create_initial_post_types() { 'show_in_rest' => true, 'rest_base' => 'font-families', 'rest_controller_class' => 'WP_REST_Font_Families_Controller', + 'can_export' => true, // Disable autosave endpoints for font families. 'autosave_rest_controller_class' => 'stdClass', ) @@ -625,6 +626,7 @@ function create_initial_post_types() { 'show_in_rest' => true, 'rest_base' => 'font-families/(?P[\d]+)/font-faces', 'rest_controller_class' => 'WP_REST_Font_Faces_Controller', + 'can_export' => true, // Disable autosave endpoints for font faces. 'autosave_rest_controller_class' => 'stdClass', )