Skip to content

Commit

Permalink
Plugin: Remove leftover 'WP_Rest_Customizer_Nonces' controller (#64221)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people committed Aug 5, 2024
1 parent 3f7611a commit 525f756
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 88 deletions.
74 changes: 0 additions & 74 deletions lib/experimental/class-wp-rest-customizer-nonces.php

This file was deleted.

9 changes: 0 additions & 9 deletions lib/experimental/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@
die( 'Silence is golden.' );
}

/**
* Registers the customizer nonces REST API routes.
*/
function gutenberg_register_rest_customizer_nonces() {
$customizer_nonces = new WP_Rest_Customizer_Nonces();
$customizer_nonces->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_rest_customizer_nonces' );

/**
* Registers the Block editor settings REST API routes.
*/
Expand Down
5 changes: 0 additions & 5 deletions lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ function gutenberg_is_experiment_enabled( $name ) {
require_once __DIR__ . '/class-wp-rest-edit-site-export-controller-gutenberg.php';
require_once __DIR__ . '/rest-api.php';

// Experimental.
if ( ! class_exists( 'WP_Rest_Customizer_Nonces' ) ) {
require_once __DIR__ . '/experimental/class-wp-rest-customizer-nonces.php';
}
require_once __DIR__ . '/experimental/rest-api.php';

require_once __DIR__ . '/experimental/kses-allowed-html.php';
}

Expand Down

0 comments on commit 525f756

Please sign in to comment.