Skip to content

Commit

Permalink
don't add align attribute it there are no default specified
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 21, 2024
1 parent a1e40f1 commit 3e5de74
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions classes/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,10 +1206,6 @@ public function prepare_block_attributes( $controls, $child_of = '', $block = nu
'type' => 'string',
'default' => '',
);
$attributes['align'] = array(
'type' => 'string',
'default' => '',
);
$attributes['anchor'] = array(
'type' => 'string',
'default' => '',
Expand Down
3 changes: 0 additions & 3 deletions tests/phpunit/block-render-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ public function add_test_block( $attrs = array() ) {
lazyblocks()->add_block( array_merge(
array(
'slug' => $block_slug,
'supports' => array(
'align' => false,
),
),
$attrs
) );
Expand Down
3 changes: 0 additions & 3 deletions tests/phpunit/controls/select-control-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ public function add_test_block( $attrs = array() ) {
lazyblocks()->add_block( array_merge(
array(
'slug' => $block_slug,
'supports' => array(
'align' => false,
),
),
$attrs
) );
Expand Down

0 comments on commit 3e5de74

Please sign in to comment.