Skip to content

Commit

Permalink
I need more sleep - fixing wrong name and class check
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed May 10, 2024
1 parent bcb22a9 commit e219c29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
*
* @see WP_REST_Controller
*/

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

class Gutenberg_REST_Global_Styles_Revisions_Controller_6_5 extends Gutenberg_REST_Global_Styles_Revisions_Controller_6_4 {
/**
* Registers the controller's routes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
* @see WP_REST_Controller
*/

class WP_REST_Edit_Site_Export_Controller_6_6 extends WP_REST_Edit_Site_Export_Controller {
if ( class_exists( 'Gutenberg_REST_Edit_Site_Export_Controller_6_6' ) ) {
return;
}

class Gutenberg_REST_Edit_Site_Export_Controller_6_6 extends WP_REST_Edit_Site_Export_Controller {
/**
* Output a ZIP file with an export of the current templates
* and template parts from the site editor, and close the connection.
Expand Down
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.6/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function gutenberg_add_class_list_to_public_post_types() {
* Registers the Edit Site Export REST API routes.
*/
function gutenberg_register_edit_site_export_controller_endpoints() {
$edit_site_export_controller = new WP_REST_Edit_Site_Export_Controller_6_6();
$edit_site_export_controller = new Gutenberg_REST_Edit_Site_Export_Controller_6_6();
$edit_site_export_controller->register_routes();
}

Expand Down

0 comments on commit e219c29

Please sign in to comment.