[wp-trac] [WordPress Trac] #64537: Block Processor: Extracting full block missing nested content.
WordPress Trac
noreply at wordpress.org
Thu Jan 22 01:12:09 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 | Focuses:
--------------------------------------+----------------------
Changes (by dmsnell):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"61509" 61509]:
{{{
#!CommitTicketReference repository="" revision="61509"
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].
Props dmsnell, jonsurrell, jorbin.
Fixes #64537.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64537#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list