Skip to content

Commit

Permalink
Check layout is actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored and scruffian committed Jul 1, 2022
1 parent 946eb50 commit 834f6b7
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 @@ -54,7 +54,7 @@ function gutenberg_get_layout_style( $selector, $layout, $padding, $has_block_ga
$all_max_width_value = wp_strip_all_tags( explode( ';', $all_max_width_value )[0] );
$wide_max_width_value = wp_strip_all_tags( explode( ';', $wide_max_width_value )[0] );

if ( $padding ) {
if ( $content_size || $wide_size ) {
$style = "$selector {";
// Using important here to override the inline padding that could be potentially
// applied using the custom padding control before the layout inheritance is applied.
Expand Down

0 comments on commit 834f6b7

Please sign in to comment.