Make WordPress Core


Ignore:
Timestamp:
06/28/2023 10:36:22 PM (2 years ago)
Author:
Bernhard Reiter
Message:

Editor: Update npm packages to fix gutenberg_ prefix

Update @wordpress/* packages to the latest patch versions in
order to replace calls to gutenberg_apply_colors_support with
wp_apply_colors_support in order to avoid a fatal error.

Props joemcgill, spacedmonkey, flixos90, ironprogrammer, sabernhardt.
Fixes #58651.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/navigation-submenu.php

    r56065 r56098  
    200200        }
    201201
    202         // This allows us to be able to get a response from gutenberg_apply_colors_support.
     202        // This allows us to be able to get a response from wp_apply_colors_support.
    203203        $block->block_type->supports['color'] = true;
    204         $colors_supports                      = gutenberg_apply_colors_support( $block->block_type, $attributes );
     204        $colors_supports                      = wp_apply_colors_support( $block->block_type, $attributes );
    205205        $css_classes                          = 'wp-block-navigation__submenu-container';
    206206        if ( array_key_exists( 'class', $colors_supports ) ) {
Note: See TracChangeset for help on using the changeset viewer.