Changeset 52232 for trunk/src/wp-includes/blocks/navigation-submenu.php
- Timestamp:
- 11/23/2021 05:38:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation-submenu.php
r52069 r52232 3 3 * Server-side rendering of the `core/navigation-submenu` block. 4 4 * 5 * @package gutenberg5 * @package WordPress 6 6 */ 7 7 … … 20 20 ); 21 21 22 $is_sub_menu = isset( $attributes['isTopLevel Link'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;22 $is_sub_menu = isset( $attributes['isTopLevelItem'] ) ? ( ! $attributes['isTopLevelItem'] ) : false; 23 23 24 24 // Text color. … … 151 151 $is_active = ! empty( $attributes['id'] ) && ( get_the_ID() === $attributes['id'] ); 152 152 153 $class_name = ! empty( $attributes['className'] ) ? implode( ' ', (array) $attributes['className'] ) : false;154 155 if ( false !== $class_name ) {156 $css_classes .= ' ' . $class_name;157 }158 159 153 $show_submenu_indicators = isset( $block->context['showSubmenuIcon'] ) && $block->context['showSubmenuIcon']; 160 154 $open_on_click = isset( $block->context['openSubmenusOnClick'] ) && $block->context['openSubmenusOnClick'];
Note: See TracChangeset
for help on using the changeset viewer.