Make WordPress Core


Ignore:
Timestamp:
11/29/2021 10:04:48 PM (2 years ago)
Author:
spacedmonkey
Message:

Editor: Remove Navigation Areas

Navigation area were merged as part of full site editing and the new navigation block. This functionality is experimental and not currently used in WordPress core, so should be removed.

Props noisysocks, spacedmonkey, get_dave, zieladam.
Fixes #54506.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1818# Files for local environment config
        1919/docker-compose.override.yml
         20.idea
  • trunk/src/wp-includes/blocks/navigation.php

    r52232 r52272  
    182182        $parsed_blocks           = gutenberg_parse_blocks_from_menu_items( $menu_items_by_parent_id[0], $menu_items_by_parent_id );
    183183        $inner_blocks            = new WP_Block_List( $parsed_blocks, $attributes );
    184     }
    185 
    186     if ( ! empty( $block->context['navigationArea'] ) ) {
    187         $area    = $block->context['navigationArea'];
    188         $mapping = get_option( 'wp_navigation_areas', array() );
    189         if ( ! empty( $mapping[ $area ] ) ) {
    190             $attributes['navigationMenuId'] = $mapping[ $area ];
    191         }
    192184    }
    193185
Note: See TracChangeset for help on using the changeset viewer.