Skip to content

Commit ff7a255

Browse files
Dartuijakubmikita
authored andcommitted
fix: check support value
1 parent 034c156 commit ff7a255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BlockLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function get_block_data( $file ) {
258258
foreach ( $data as $key => &$value ) {
259259
if ( in_array( $key, [ 'keywords', 'post_types', 'supports_align' ], true ) ) {
260260
$value = $this->parse_coma_separated_list( $value );
261-
} elseif ( 'supports_spacing' === $key ) {
261+
} elseif ( 'supports_spacing' === $key && 'true' === $value ) {
262262
$value = [ 'margin' => true, 'padding' => true ];
263263
} elseif ( in_array( $value, [ 'true', 'false' ], true ) ) {
264264
$value = ( 'true' === $value ) ? true : false;

0 commit comments

Comments
 (0)