Skip to content

Commit

Permalink
Remove Gutenberg_REST_Block_Types_Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jul 26, 2023
1 parent a56fc2c commit 071b7f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 88 deletions.
82 changes: 0 additions & 82 deletions lib/experimental/class-gutenberg-rest-block-types-controller.php

This file was deleted.

5 changes: 0 additions & 5 deletions lib/experimental/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ function gutenberg_register_rest_block_patterns() {
$block_patterns->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_rest_block_patterns' );
function gutenberg_register_rest_block_types() {
$block_types = new Gutenberg_REST_Block_Types_Controller();
$block_types->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_rest_block_types' );
}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ function gutenberg_is_experiment_enabled( $name ) {
require_once __DIR__ . '/experimental/class-gutenberg-rest-template-revision-count.php';
if ( gutenberg_is_experiment_enabled( 'gutenberg-auto-inserting-blocks' ) ) {
require_once __DIR__ . '/experimental/class-gutenberg-rest-block-patterns-controller.php';
require_once __DIR__ . '/experimental/class-gutenberg-rest-block-types-controller.php';
}
require_once __DIR__ . '/experimental/rest-api.php';
}
Expand Down

0 comments on commit 071b7f2

Please sign in to comment.