Skip to content

Commit

Permalink
convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 18, 2021
1 parent a6ceb90 commit 03b2704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/archive-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function render_block_core_archive_title( $attributes, $content, $block ) {
return '';
}

$tag_name = isset( $attributes['level'] ) ? 'h' . $attributes['level'] : 'h2';
$tag_name = isset( $attributes['level'] ) ? 'h' . (int) $attributes['level'] : 'h2';
$align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );

Expand Down

0 comments on commit 03b2704

Please sign in to comment.