Changeset 52161 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 11/15/2021 12:47:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r52103 r52161 148 148 if ( ! empty( $block->context['navigationArea'] ) ) { 149 149 $area = $block->context['navigationArea']; 150 $mapping = get_option( ' fse_navigation_areas', array() );150 $mapping = get_option( 'wp_navigation_areas', array() ); 151 151 if ( ! empty( $mapping[ $area ] ) ) { 152 152 $attributes['navigationMenuId'] = $mapping[ $area ]; … … 180 180 return ''; 181 181 } 182 183 // Restore legacy classnames for submenu positioning. 184 $layout_class = ''; 185 if ( isset( $attributes['layout']['justifyContent'] ) ) { 186 if ( 'right' === $attributes['layout']['justifyContent'] ) { 187 $layout_class .= 'items-justified-right'; 188 } elseif ( 'space-between' === $attributes['layout']['justifyContent'] ) { 189 $layout_class .= 'items-justified-space-between'; 190 } 191 } 192 182 193 $colors = block_core_navigation_build_css_colors( $attributes ); 183 194 $font_sizes = block_core_navigation_build_css_font_sizes( $attributes ); … … 185 196 $colors['css_classes'], 186 197 $font_sizes['css_classes'], 187 $is_responsive_menu ? array( 'is-responsive' ) : array() 198 $is_responsive_menu ? array( 'is-responsive' ) : array(), 199 $layout_class ? array( $layout_class ) : array() 188 200 ); 189 201
Note: See TracChangeset
for help on using the changeset viewer.