diff --git a/wp-includes/block-supports/shadow.php b/wp-includes/block-supports/shadow.php index 0ccaf3fd44..fffc72e6b8 100644 --- a/wp-includes/block-supports/shadow.php +++ b/wp-includes/block-supports/shadow.php @@ -43,6 +43,7 @@ function wp_register_shadow_support( $block_type ) { * This will be applied to the block markup in the front-end. * * @since 6.3.0 + * @since 6.6.0 Return early if __experimentalSkipSerialization is true. * @access private * * @param WP_Block_Type $block_type Block type. @@ -52,7 +53,10 @@ function wp_register_shadow_support( $block_type ) { function wp_apply_shadow_support( $block_type, $block_attributes ) { $has_shadow_support = block_has_support( $block_type, 'shadow', false ); - if ( ! $has_shadow_support ) { + if ( + ! $has_shadow_support || + wp_should_skip_block_supports_serialization( $block_type, 'shadow' ) + ) { return array(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index a67fbd5f8e..f31c73bc1c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58311'; +$wp_version = '6.6-alpha-58312'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.