Changeset 52272 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 11/29/2021 10:04:48 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 18 18 # Files for local environment config 19 19 /docker-compose.override.yml 20 .idea
-
- Property svn:ignore
-
trunk/src/wp-includes/blocks/navigation.php
r52232 r52272 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 }192 184 } 193 185
Note: See TracChangeset
for help on using the changeset viewer.