Skip to content
Prev Previous commit
Next Next commit
cleanup: this is not necessary, moved $selector to the initial array
  • Loading branch information
aristath committed Jul 19, 2022
commit 29b4874b8990b47567feb85a868e421c0da5cbb8
1 change: 0 additions & 1 deletion lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ function gutenberg_get_layout_style( $selector, $layout, $has_block_gap_support
$gap_value = $gap_row === $gap_column ? $gap_row : $gap_row . ' ' . $gap_column;
}
if ( $gap_value && ! $should_skip_gap_serialization ) {
$declarations[ $selector ] = isset( $declarations[ $selector ] ) ? $declarations[ $selector ] : array();
$declarations[ $selector ]['gap'] = $gap_value;
}
}
Expand Down