core/excerpt-block - Missing </div> in render_block_core_post_excerpt() when showMoreOnNewLine #26581
Labels
[Block] Post Excerpt
Affects the Post Excerpt Block
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Describe the bug
I'm using the post-excerpt block in a query-loop in an experimental FSE theme.
I noticed that the background styling had extended to subsequent sections of the output.
The generated HTML was missing the
</div>
tag.A clear and concise description of what the bug is.
To reproduce
Steps to reproduce the behavior:
The generated HTML for an excerpt will be something like this
Expected behavior
There should be
</div>
for each excerpt.Screenshots
Before:
After applying the fix I took the opportunity to get rid of the greeny background
Editor version (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Suggested fix:
Append
</div>
to line 39 of post-excerpt.phpThe text was updated successfully, but these errors were encountered: