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

Font Library REST API endpoints: address initial feedback from feature branch #57946

Merged
Show file tree
Hide file tree
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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* WP_REST_Autosave_Fonts_Controller class.
*
* This file contains the class for the REST API Autosave Font Families and Font Faces Controller.
*
* @package WordPress
* @subpackage REST_API
* @since 6.5.0
*/

if ( class_exists( 'WP_REST_Autosave_Fonts_Controller' ) ) {
return;
}

/**
* Autosave Font Families Controller class.
*
* @since 6.5.0
*/
class WP_REST_Autosave_Fonts_Controller {
public function register_routes() {
// disable autosave endpoints for font families and faces.
}
}
Comment on lines +1 to +25
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I'm making the empty autosave controller generic so we can use it for both wp_font_family and wp_font_face post types.

Loading
Loading