Skip to content

Commit

Permalink
Remove _V2 from endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jun 1, 2021
1 parent 912f457 commit ea1e36e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-pattern-directory-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @see WP_REST_Controller
*/
class WP_REST_Pattern_Directory_Controller_V2 extends WP_REST_Controller {
class WP_REST_Pattern_Directory_Controller extends WP_REST_Controller {

/**
* Constructs the controller.
Expand Down
2 changes: 1 addition & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function gutenberg_is_experiment_enabled( $name ) {
if ( ! class_exists( 'WP_REST_Widgets_Controller' ) ) {
require_once __DIR__ . '/class-wp-rest-widgets-controller.php';
}
if ( ! class_exists( 'WP_REST_Pattern_Directory_Controller_V2' ) ) {
if ( ! class_exists( 'WP_REST_Pattern_Directory_Controller' ) ) {
require_once __DIR__ . '/class-wp-rest-pattern-directory-controller.php';
}
if ( ! class_exists( 'WP_REST_Menus_Controller' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function gutenberg_register_url_details_routes() {
* Registers the block pattern directory.
*/
function gutenberg_register_rest_pattern_directory() {
$block_directory_controller = new WP_REST_Pattern_Directory_Controller_V2();
$block_directory_controller = new WP_REST_Pattern_Directory_Controller();
$block_directory_controller->register_routes();
}
add_filter( 'rest_api_init', 'gutenberg_register_rest_pattern_directory' );
Expand Down

0 comments on commit ea1e36e

Please sign in to comment.