[wp-trac] [WordPress Trac] #64537: Block Processor: Extracting full block missing nested content.
WordPress Trac
noreply at wordpress.org
Mon Jan 26 16:29:08 UTC 2026
#64537: Block Processor: Extracting full block missing nested content.
-------------------------------------------------+-------------------------
Reporter: dmsnell | Owner: dmsnell
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9.1
Component: Editor | Version: 6.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests dev- | Focuses:
reviewed fixed-major |
-------------------------------------------------+-------------------------
Changes (by jonsurrell):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"61530" 61530]:
{{{
#!CommitTicketReference repository="" revision="61530"
Blocks: Ensure extract_full_block_and_advance() matches parse_blocks()
The behavior of `WP_Block_Processor::extract_full_block_and_advance()`
should produce an identical output to what `parse_blocks()` would return
on the same substring of input.
Unfortunately, when HTML spans followed inner blocks, they were being
omitted in the output parse tree. This was due to an omission in the
original code which would look for those blocks before advancing again
after calling `extract_full_block_and_advance()` recursively.
This patch adds the missing check and resolves the discrepancy.
Developed in: https://github.com/WordPress/wordpress-develop/pull/10769
Discussed in: https://core.trac.wordpress.org/ticket/64538
Follow-up to [60939].
Reviewed by jonsurrell.
Merges [61509] to the 6.9 branch.
Props dmsnell, jonsurrell, jorbin.
Fixes #64537.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64537#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list