Skip to content

Commit

Permalink
Append missing </div> to post-excerpt block (#26581) (#26806)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide authored Nov 9, 2020
1 parent 6c86700 commit 391a0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-excerpt/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function render_block_core_post_excerpt( $attributes, $content, $block ) {

$output = sprintf( '<div %1$s>', esc_attr( $wrapper_attributes ) ) . '<p class="wp-block-post-excerpt__excerpt">' . get_the_excerpt( $block->context['postId'] );
if ( ! isset( $attributes['showMoreOnNewLine'] ) || $attributes['showMoreOnNewLine'] ) {
$output .= '</p>' . '<p class="wp-block-post-excerpt__more-text">' . $more_text . '</p>';
$output .= '</p>' . '<p class="wp-block-post-excerpt__more-text">' . $more_text . '</p></div>';
} else {
$output .= ' ' . $more_text . '</p>' . '</div>';
}
Expand Down

0 comments on commit 391a0fd

Please sign in to comment.