Opened 6 weeks ago
Closed 4 weeks ago
#65586 closed task (blessed) (fixed)
Backport Latest Posts Parse blocks in full content display
| Reported by: | get_dave | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.1 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | gutenberg-merge has-patch |
| Cc: | Focuses: |
Description
Brings across changes from https://github.com/WordPress/gutenberg/pull/74866
Change History (12)
This ticket was mentioned in PR #12421 on WordPress/wordpress-develop by @get_dave.
6 weeks ago
#1
- Keywords has-patch has-unit-tests added
@wildworks commented on PR #12421:
5 weeks ago
#3
I have updated this PR according to https://github.com/WordPress/gutenberg/pull/80191. This PR should simply add the _wp_apply_block_content_filters function and unit tests.
@wildworks commented on PR #12421:
5 weeks ago
#4
I have removed the unit tests from this PR. This PR needs to be committed before today's Gutenberg sync, otherwise the non-existent _wp_apply_content_filters function will be executed during server-side rendering of blocks, causing a critical error. If no one else can review it, I will commit it myself before the Gutenberg sync.
#6
@
5 weeks ago
- Keywords needs-patch added; has-patch has-unit-tests removed
@get_dave @scruffian @onemaggie, To avoid the risk of critical errors when Gutenberg is synced to the core, I have temporarily committed only private functions. However, I believe unit tests are necessary for this function, so I would appreciate it if you could add them in a follow-up.
#7
@
5 weeks ago
@wildworks Sure and thanks for picking up this work. I'll raise a PR for unit tests now.
@get_dave commented on PR #12421:
5 weeks ago
#8
@getdave @scruffian @MaggieCabrera, Is it possible to move this PR forward to meet the Beta 1 deadline? At a minimum, the changes in the following two files need to be reverted, as they are automatically synchronized from Gutenberg.
- src/wp-includes/blocks/latest-posts.php
- src/wp-includes/blocks/template-part.php
Apologies but I somehow missed this ping. I really appreciate you wrangling this here 🙇
@get_dave commented on PR #12421:
5 weeks ago
#10
Committed in https://core.trac.wordpress.org/changeset/62758
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This PR backports the Latest Posts full-content rendering fix from https://github.com/WordPress/gutenberg/pull/74866.
When the Latest Posts block is configured to show full post content, post content is now processed through the block content rendering pipeline instead of outputting raw block markup. This ensures nested blocks in the displayed post content render with their expected markup, attributes, styles, embeds, and media handling.
The change also adds recursion protection for Latest Posts blocks that render posts containing another Latest Posts block, and preserves the outer post context after nested rendering.
## Use of AI Tools
AI assistance: Yes
Tool(s): ChatGPT / Codex
Model(s): GPT-5
Used for: Backport implementation, test scaffolding, command execution, and PR description drafting. Final code, tests, and commit were reviewed by me.