[wp-trac] [WordPress Trac] #61401: Blocks: Efficiently find and traverse blocks in a document.
WordPress Trac
noreply at wordpress.org
Wed Oct 15 21:51:50 UTC 2025
#61401: Blocks: Efficiently find and traverse blocks in a document.
--------------------------------------+------------------------------
Reporter: dmsnell | Owner: dmsnell
Type: feature request | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by dmsnell):
* owner: (none) => dmsnell
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60939" 60939]:
{{{
#!CommitTicketReference repository="" revision="60939"
Blocks: Introduce WP_Block_Processor for efficiently parsing blocks.
The Block Processor follows the HTML API in providing a streaming, near-
zero-overhead, lazy, re-entrant parser for traversing block structure.
This class provides an alternate interface to `parse_blocks()` which is
more amenable to a number of common server-side operations on posts,
especially those needing to operate on only a part of a full post.
Developed in https://github.com/WordPress/wordpress-develop/pull/9105
Discussed in https://core.trac.wordpress.org/ticket/61401
Props dmsnell, gziolo, jonsurrell, soean, tjnowell, westonruter.
Fixes #61401.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61401#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list