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 Apr 30, 2024
1 parent 16769a5 commit 7b88696
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 @@ -733,7 +733,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 7b88696

Please sign in to comment.