-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Font Library REST API endpoints: address initial feedback from featur…
…e branch (#57946)
- Loading branch information
1 parent
dd885b5
commit 2ed7a3b
Showing
8 changed files
with
446 additions
and
304 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
lib/experimental/fonts/font-library/class-wp-rest-autosave-font-families-controller.php
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
lib/experimental/fonts/font-library/class-wp-rest-autosave-fonts-controller.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} | ||
} |
Oops, something went wrong.