Skip to content

Commit

Permalink
Shadow support enable skip serialization for dynamic blocks (#59887)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinduwe authored Mar 15, 2024
1 parent 33ffd50 commit 63f95db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/block-supports/shadow.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ function gutenberg_register_shadow_support( $block_type ) {
function gutenberg_apply_shadow_support( $block_type, $block_attributes ) {
$has_shadow_support = block_has_support( $block_type, array( 'shadow' ), false );

if ( ! $has_shadow_support ) {
if (
! $has_shadow_support ||
wp_should_skip_block_supports_serialization( $block_type, 'shadow' )
) {
return array();
}

Expand Down

0 comments on commit 63f95db

Please sign in to comment.