Post Excerpt and Post Content blocks output wrapping divs when the post content is empty #30571
Labels
[Block] Post Content
Affects the Post Content Block
[Block] Post Excerpt
Affects the Post Excerpt Block
[Status] In Progress
Tracking issues with work in progress
What problem does this address?
The Post Excerpt and Post Content blocks output their wrapping divs (and a wrapping paragraph, for the excerpt) for posts without post content, adding unneccessary markup to the page and complicating CSS sibling targeting.
What is your proposed solution?
Don't output the block wrappers when the post content is empty.
The text was updated successfully, but these errors were encountered: