Skip to content

Commit 51983c9

Browse files
Fix dynamic block skip spacing support serialization check
1 parent bf45dba commit 51983c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/block-supports/spacing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function gutenberg_apply_spacing_support( $block_type, $block_attributes ) {
7373
* @return boolean Whether to serialize spacing support styles & classes.
7474
*/
7575
function gutenberg_skip_spacing_serialization( $block_type ) {
76-
$spacing_support = gutenberg_block_has_support( $block_type, array( 'spacing' ), false );
76+
$spacing_support = _wp_array_get( $block_type->supports, array( 'spacing' ), false );
7777

7878
return is_array( $spacing_support ) &&
7979
array_key_exists( '__experimentalSkipSerialization', $spacing_support ) &&

0 commit comments

Comments
 (0)