Skip to content

Commit 75ab429

Browse files
committed
Block Supports: Change prefix in gutenberg_apply_colors_support to wp_ in dynamic blocks (#51989)
1 parent 7efa7c2 commit 75ab429

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/block-library/src/navigation-submenu/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
199199
$attributes['style']['color']['background'] = $block->context['customOverlayBackgroundColor'];
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 ) ) {
207207
$css_classes .= ' ' . $colors_supports['class'];

tools/webpack/blocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const blockViewRegex = new RegExp(
2929
*/
3030
const prefixFunctions = [
3131
'build_query_vars_from_query_block',
32+
'wp_apply_colors_support',
3233
'wp_enqueue_block_support_styles',
3334
'wp_get_typography_font_size_value',
3435
'wp_style_engine_get_styles',

0 commit comments

Comments
 (0)