[wp-trac] [WordPress Trac] #61401: Blocks: Efficiently find and traverse blocks in a document.

WordPress Trac noreply at wordpress.org
Tue Nov 25 00:52:22 UTC 2025


#61401: Blocks: Efficiently find and traverse blocks in a document.
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  dmsnell
     Type:  feature request                      |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  dev-reviewed                                   |
-------------------------------------------------+-------------------------

Comment (by dmsnell):

 In [changeset:"61296" 61296]:
 {{{
 #!CommitTicketReference repository="" revision="61296"
 Block Processor: Rename `extract_block()` method for clearer
 documentation.

 In testing during the release candidacy for WordPress 6.9 it was found
 that the `extract_block()` method may do more work than is expected
 based off of its name.

 This change renames the method to `extract_full_block_and_advance()` to
 communicate that it does move the Block Processor forward and to hint at
 the fact that it also encompasses all inner blocks during that advance.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10538
 Discussed in https://core.trac.wordpress.org/ticket/61401

 Follow-up to [60939].

 Reviewed by desrosj, jonsurrell.
 Merges [61294] to the 6.9 branch.

 Props dlh, dmsnell, jonsurrell, westonruter.

 See #61401.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61401#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list