Skip to content

Keep before and after content outside the blocked-message box - #2618

Merged
richaferry merged 2 commits into
developmentfrom
fix/2550-teaser-content-boundaries
Oct 28, 2026
Merged

richaferry merged 2 commits into
developmentfrom
fix/2550-teaser-content-boundaries

Conversation

@richaferry

@richaferry richaferry commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Stacked PR: merge #2617 first. This PR is based on its issue branch so its diff still covers only the issue below. After the parent merges, retarget to development (or allow GitHub to retarget when the parent branch is deleted).

Closes #2550

Summary

  • Balance each before/after fragment before combining it with the styled blocked-user message.
  • Use valid block HTML for notice containers rather than placing divs inside paragraph blocks.
  • Reuse fragment formatting in the fixed-message path and balance the client preview too.
  • Cover classic/block posts, fixed-message/excerpt modes, deliberately unclosed prefixes, ordering, and restricted-body removal.

Validation

  • git diff --check
  • PHP syntax checks and targeted project/WordPress.org PHPCS checks
  • JavaScript syntax checks
  • php tests/unit/teaser-content-boundaries.php: 48 DOM/content assertions pass; added to the PHP 7.2/8.5 CI matrix

Browser/interactive verification is not claimed unless explicitly recorded above.

@richaferry richaferry added this to the 4.9.2 milestone Oct 23, 2026
@richaferry
richaferry changed the base branch from development to fix/2555-teaser-message-style-tab October 23, 2026 23:13
@richaferry richaferry removed this from the 4.9.2 milestone Oct 24, 2026
Base automatically changed from fix/2555-teaser-message-style-tab to development October 28, 2026 20:46
@richaferry
richaferry force-pushed the fix/2550-teaser-content-boundaries branch from a7765c3 to ae6fa75 Compare October 28, 2026 20:56
@richaferry
richaferry merged commit 94c353a into development Oct 28, 2026
9 checks passed
@richaferry
richaferry deleted the fix/2550-teaser-content-boundaries branch October 28, 2026 21:04
@richaferry richaferry mentioned this pull request Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Small change for Before post content and After content

1 participant