Fix: Add overflow-wrap to prevent long text overflow on front-end #75044
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.
What?
Adds
overflow-wrap: break-wordto the front-end styles of Paragraph, Post Content, and Post Excerpt blocks.Why?
Closes #52871
Long unbroken text (text without spaces or line breaks) currently overflows on the front-end, overlapping other content. This is especially visible in multi-column layouts like query blocks.
In the editor, text wraps correctly because
.block-editor-block-list__blockalready hasoverflow-wrap: break-wordapplied. However, this CSS was missing from the front-end styles for these blocks.How?
Added
overflow-wrap: break-wordto:p.wp-block-paragraphin paragraph/style.scss.wp-block-post-contentin post-content/style.scss.wp-block-post-excerpt__excerptin post-excerpt/style.scssThis follows the same pattern already used in other blocks (quote, pullquote, embed, columns, code, etc.).
Testing Instructions
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...)Screenshots or screencast
Before:
Text appears as one long line
Screen.Recording.2026-01-29.at.3.54.24.PM.mov
After:
Text wraps properly across multiple lines
Screen.Recording.2026-01-29.at.3.56.19.PM.mov