Ticket #58651: 58651.patch
File 58651.patch, 947 bytes (added by , 18 months ago) |
---|
-
src/wp-includes/blocks/navigation-submenu.php
201 201 202 202 // This allows us to be able to get a response from gutenberg_apply_colors_support. 203 203 $block->block_type->supports['color'] = true; 204 $colors_supports = gutenberg_apply_colors_support( $block->block_type, $attributes );204 $colors_supports = function_exists( 'gutenberg_apply_colors_support' ) ? gutenberg_apply_colors_support( $block->block_type, $attributes ) : wp_apply_colors_support( $block->block_type, $attributes ); 205 205 $css_classes = 'wp-block-navigation__submenu-container'; 206 206 if ( array_key_exists( 'class', $colors_supports ) ) { 207 207 $css_classes .= ' ' . $colors_supports['class'];