diff --git a/src/wp-includes/global-styles-and-settings.php b/src/wp-includes/global-styles-and-settings.php
index fae7ae6ffb..fd1890c53a 100644
|
a
|
b
|
function wp_add_global_styles_for_blocks() { |
| 329 | 329 | if ( str_starts_with( $metadata['name'], 'core/' ) ) { |
| 330 | 330 | $block_name = str_replace( 'core/', '', $metadata['name'] ); |
| 331 | 331 | $block_handle = 'wp-block-' . $block_name; |
| 332 | | if ( in_array( $block_handle, $wp_styles->queue ) ) { |
| | 332 | if ( in_array( $block_handle, $wp_styles->queue, true ) ) { |
| 333 | 333 | wp_add_inline_style( $stylesheet_handle, $block_css ); |
| 334 | 334 | } |
| 335 | 335 | } else { |
| … |
… |
function wp_add_global_styles_for_blocks() { |
| 344 | 344 | if ( str_starts_with( $block_name, 'core/' ) ) { |
| 345 | 345 | $block_name = str_replace( 'core/', '', $block_name ); |
| 346 | 346 | $block_handle = 'wp-block-' . $block_name; |
| 347 | | if ( in_array( $block_handle, $wp_styles->queue ) ) { |
| | 347 | if ( in_array( $block_handle, $wp_styles->queue, true ) ) { |
| 348 | 348 | wp_add_inline_style( $stylesheet_handle, $block_css ); |
| 349 | 349 | } |
| 350 | 350 | } else { |