Changeset 52273 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 11/29/2021 11:29:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r52272 r52273 182 182 $parsed_blocks = gutenberg_parse_blocks_from_menu_items( $menu_items_by_parent_id[0], $menu_items_by_parent_id ); 183 183 $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 } 184 192 } 185 193
Note: See TracChangeset
for help on using the changeset viewer.