Skip to content

Commit

Permalink
Fix attribute location
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Mar 30, 2022
1 parent 02944c8 commit 0fa5b16
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 @@ -166,7 +166,7 @@ function gutenberg_render_layout_support_flag( $block_content, $block ) {

$block_gap = gutenberg_get_global_settings( array( 'spacing', 'blockGap' ) );
$default_layout = gutenberg_get_global_settings( array( 'layout' ) );
$padding = _wp_array_get( $block, array( 'attrs', 'style', 'padding' ), null );
$padding = _wp_array_get( $block, array( 'attrs', 'style', 'spacing', 'padding' ), null );
$has_block_gap_support = isset( $block_gap ) ? null !== $block_gap : false;
$default_block_layout = _wp_array_get( $block_type->supports, array( '__experimentalLayout', 'default' ), array() );
$used_layout = isset( $block['attrs']['layout'] ) ? $block['attrs']['layout'] : $default_block_layout;
Expand Down

0 comments on commit 0fa5b16

Please sign in to comment.