Skip to content

Commit

Permalink
$selector is already defined in the array init
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jul 15, 2022
1 parent d020fa9 commit e7cbd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function gutenberg_get_layout_style( $selector, $layout, $has_block_gap_support
}

if ( ! empty( $layout['flexWrap'] ) && 'nowrap' === $layout['flexWrap'] ) {
$declarations[ $selector ] = array( 'flex-wrap' => 'nowrap' );
$declarations[ $selector ]['flex-wrap'] = 'nowrap';
}

if ( $has_block_gap_support ) {
Expand Down

0 comments on commit e7cbd03

Please sign in to comment.