Skip to content
Prev Previous commit
Next Next commit
Fix return of dimensions support in PHP
  • Loading branch information
andrewserong committed Nov 3, 2022
commit a9b483cdef9dbeefeec6ff4f4e526cd8bf996491
2 changes: 1 addition & 1 deletion lib/block-supports/dimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function gutenberg_apply_dimensions_support( $block_type, $block_attributes ) {
$attributes['style'] = $styles['css'];
}

return empty( $styles ) ? array() : array( 'style' => implode( ' ', $styles ) );
return $attributes;
}

// Register the block support.
Expand Down