Changeset 52277 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 11/30/2021 05:46:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r52275 r52277 283 283 $parsed_blocks = gutenberg_parse_blocks_from_menu_items( $menu_items_by_parent_id[0], $menu_items_by_parent_id ); 284 284 $inner_blocks = new WP_Block_List( $parsed_blocks, $attributes ); 285 }286 287 if ( ! empty( $block->context['navigationArea'] ) ) {288 $area = $block->context['navigationArea'];289 $mapping = get_option( 'wp_navigation_areas', array() );290 if ( ! empty( $mapping[ $area ] ) ) {291 $attributes['ref'] = $mapping[ $area ];292 }293 285 } 294 286
Note: See TracChangeset
for help on using the changeset viewer.