Append missing </div> to post-excerpt block (#26581) #26806
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In the
core/post-excerpt
block there's logic that tests if theshowMoreOnNewLine
attribute is set.When it was missing or true then the generated HTML was missing a trailing
</div>
.This fix adds the missing
</div>
.How has this been tested?
<wp:post-excerpt>
to a template and demonstrated - using View Source - that the end div tag was no longer missing.Screenshots
With this simple test setup there was no visible effect to the displayed output.
Types of changes
Checklist:
I can't honestly tick some of the above in the checklist since I don't have a
wp-env
environment.This means I can't run the PHPUnit tests, nor other
npm run
commands that expect it.