diff --git a/lib/blocks.php b/lib/blocks.php index 3670cc587d930..3f0e8a547a868 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -71,7 +71,6 @@ function gutenberg_reregister_core_block_types() { 'latest-posts.php' => 'core/latest-posts', 'loginout.php' => 'core/loginout', 'navigation.php' => 'core/navigation', - 'navigation-area.php' => 'core/navigation-area', 'navigation-link.php' => 'core/navigation-link', 'navigation-submenu.php' => 'core/navigation-submenu', 'page-list.php' => 'core/page-list', diff --git a/packages/e2e-tests/specs/editor/blocks/navigation.test.js b/packages/e2e-tests/specs/editor/blocks/navigation.test.js index df835bcbc0137..71effc7b96652 100644 --- a/packages/e2e-tests/specs/editor/blocks/navigation.test.js +++ b/packages/e2e-tests/specs/editor/blocks/navigation.test.js @@ -1346,11 +1346,9 @@ describe( 'Navigation', () => { `//*[contains(@class, 'components-snackbar__content')][ text()="You do not have permission to edit this Menu. Any changes made will not be saved." ]` ); - // Expect a console 403 for request to Navigation Areas for lower permission users. - // This is because reading requires the `edit_theme_options` capability - // which the Contributor level user does not have. - // See: https://github.com/WordPress/gutenberg/blob/4cedaf0c4abb0aeac4bfd4289d63e9889efe9733/lib/class-wp-rest-block-navigation-areas-controller.php#L81-L91. - // Todo: removed once Nav Areas are removed from the Gutenberg Plugin. + // Expect a console 403 for requests to: + // * /wp/v2/settings?_locale=user + // * /wp/v2/templates?context=edit&post_type=post&per_page=100&_locale=user expect( console ).toHaveErrored(); } ); @@ -1369,11 +1367,9 @@ describe( 'Navigation', () => { `//*[contains(@class, 'components-snackbar__content')][ text()="${ noticeText }" ]` ); - // Expect a console 403 for request to Navigation Areas for lower permission users. - // This is because reading requires the `edit_theme_options` capability - // which the Contributor level user does not have. - // See: https://github.com/WordPress/gutenberg/blob/4cedaf0c4abb0aeac4bfd4289d63e9889efe9733/lib/class-wp-rest-block-navigation-areas-controller.php#L81-L91. - // Todo: removed once Nav Areas are removed from the Gutenberg Plugin. + // Expect a console 403 for requests to: + // * /wp/v2/settings?_locale=user + // * /wp/v2/templates?context=edit&post_type=post&per_page=100&_locale=user expect( console ).toHaveErrored(); } ); } );