Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export font families and font faces post on site export #6173

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down Expand Up @@ -625,6 +626,7 @@ function create_initial_post_types() {
'show_in_rest' => true,
'rest_base' => 'font-families/(?P<font_family_id>[\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',
)
Expand Down
Loading