Skip to content

Commit 7757e50

Browse files
Remove specific alignment value checks
1 parent 55349c2 commit 7757e50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ function auto_sizes_filter_render_block_context( array $context, array $block, ?
300300
// Use the defined constant for constraints.
301301
$constraints = AUTO_SIZES_CONSTRAINTS;
302302

303-
if ( 'default' === $alignment || 'wide' === $alignment ) {
304-
$context['max_alignment'] = $constraints[ $context['max_alignment'] ] > $constraints[ $alignment ] ? $context['max_alignment'] : $alignment;
305-
}
303+
$context['max_alignment'] = $constraints[ $context['max_alignment'] ] > $constraints[ $alignment ] ? $context['max_alignment'] : $alignment;
306304
}
307305

308306
if ( 'core/columns' === $block['blockName'] ) {

0 commit comments

Comments
 (0)