Make WordPress Core

Ticket #58651: 58651.patch

File 58651.patch, 947 bytes (added by sabernhardt, 18 months ago)
  • src/wp-includes/blocks/navigation-submenu.php

     
    201201
    202202                // This allows us to be able to get a response from gutenberg_apply_colors_support.
    203203                $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 );
    205205                $css_classes                          = 'wp-block-navigation__submenu-container';
    206206                if ( array_key_exists( 'class', $colors_supports ) ) {
    207207                        $css_classes .= ' ' . $colors_supports['class'];