Skip to content

Commit

Permalink
Fix REST API registration variable nameing
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Nov 5, 2021
1 parent 40349db commit e7bc4a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function gutenberg_register_rest_pattern_directory() {
add_filter( 'rest_api_init', 'gutenberg_register_rest_pattern_directory' );

/**
* Registers the menu locations area REST API routes.
* Registers the menu locations REST API routes.
*/
function gutenberg_register_rest_menu_location() {
$nav_menu_location = new WP_REST_Menu_Locations_Controller();
Expand All @@ -44,17 +44,17 @@ function gutenberg_register_rest_menu_location() {
* Registers the navigation areas REST API routes.
*/
function gutenberg_register_rest_navigation_areas() {
$nav_menu_location = new WP_REST_Block_Navigation_Areas_Controller();
$nav_menu_location->register_routes();
$navigation_areas = new WP_REST_Block_Navigation_Areas_Controller();
$navigation_areas->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_rest_navigation_areas' );

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

Expand Down

0 comments on commit e7bc4a1

Please sign in to comment.