Skip to content

Commit

Permalink
Remove Navigation Area block (#40645)
Browse files Browse the repository at this point in the history
* Remove all references to Navigation Area block

* Remove rest init

* Remove Nav Area from ts entities

* Remove refs to Nav Areas from Core Data tests
  • Loading branch information
getdave authored May 3, 2022
1 parent 8b5c5d6 commit 7f3488a
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 638 deletions.
9 changes: 0 additions & 9 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,6 @@ A collection of blocks that allow visitors to get around your site. ([Source](ht
- **Supports:** align (full, wide), anchor, inserter, spacing (blockGap, units), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** __unstableLocation, backgroundColor, customBackgroundColor, customOverlayBackgroundColor, customOverlayTextColor, customTextColor, hasIcon, maxNestingLevel, openSubmenusOnClick, overlayBackgroundColor, overlayMenu, overlayTextColor, ref, rgbBackgroundColor, rgbTextColor, showSubmenuIcon, textColor

## Navigation Area

Define a navigation area for your theme. The navigation block associated with this area will be automatically displayed. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/navigation-area))

- **Name:** core/navigation-area
- **Category:** theme
- **Supports:** ~~html~~, ~~inserter~~
- **Attributes:** area

## Custom Link

Add a page, link, or another item to your navigation. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/navigation-link))
Expand Down
285 changes: 0 additions & 285 deletions lib/experimental/class-wp-rest-block-navigation-areas-controller.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 navigation areas REST API routes.
*/
function gutenberg_register_rest_navigation_areas() {
$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 customizer nonces REST API routes.
*/
Expand Down
3 changes: 0 additions & 3 deletions lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ function gutenberg_is_experiment_enabled( $name ) {
if ( ! class_exists( 'WP_Rest_Customizer_Nonces' ) ) {
require_once __DIR__ . '/experimental/class-wp-rest-customizer-nonces.php';
}
if ( ! class_exists( 'WP_REST_Block_Navigation_Areas_Controller' ) ) {
require_once __DIR__ . '/experimental/class-wp-rest-block-navigation-areas-controller.php';
}
require_once __DIR__ . '/experimental/rest-api.php';
}

Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import * as mediaText from './media-text';
import * as missing from './missing';
import * as more from './more';
import * as navigation from './navigation';
import * as navigationArea from './navigation-area';
import * as navigationLink from './navigation-link';
import * as navigationSubmenu from './navigation-submenu';
import * as nextpage from './nextpage';
Expand Down Expand Up @@ -279,7 +278,6 @@ export const __experimentalRegisterExperimentalCoreBlocks = process.env
...( enableFSEBlocks
? [
commentAuthorAvatar,
navigationArea,
postComment,
postCommentsCount,
postCommentsLink,
Expand Down
23 changes: 0 additions & 23 deletions packages/block-library/src/navigation-area/block.json

This file was deleted.

Loading

0 comments on commit 7f3488a

Please sign in to comment.