Skip to content

Commit

Permalink
Add back 'constrained' === $used_layout['type']
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed May 23, 2024
1 parent 0585578 commit cd2f2d5
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 @@ -737,7 +737,7 @@ function gutenberg_render_layout_support_flag( $block_content, $block ) {

$root_padding_aware_alignments = $global_settings['useRootPaddingAwareAlignments'] ?? false;

if ( $root_padding_aware_alignments && isset( $used_layout['type'] ) || 'full' === $used_alignment ) {
if ( $root_padding_aware_alignments && isset( $used_layout['type'] ) && 'constrained' === $used_layout['type'] || 'full' === $used_alignment ) {
$class_names[] = 'has-global-padding';
}

Expand Down

0 comments on commit cd2f2d5

Please sign in to comment.