[wp-trac] [WordPress Trac] #59412: Blocks: Add post-block callback arg to `traverse_and_serialize_block(s)`, change signature

WordPress Trac noreply at wordpress.org
Wed Sep 20 16:48:00 UTC 2023


#59412: Blocks: Add post-block callback arg to `traverse_and_serialize_block(s)`,
change signature
--------------------------------------+------------------------------
 Reporter:  Bernhard Reiter           |       Owner:  Bernhard Reiter
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.4
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by Bernhard Reiter):

 In [changeset:"56634" 56634]:
 {{{
 #!CommitTicketReference repository="" revision="56634"
 Blocks: Revert implementation of block insertion functions.

 In [56618], three functions (`insert_inner_block`, `prepend_inner_block`,
 and `append_inner_block`) were introduced. They were meant to be used for
 insertion of hooked blocks; however, it was discovered that the original
 idea wouldn't work for sibling insertion. Instead, a different approach
 will be taken (see #59412), and these functions are no longer needed and
 can thus be removed.

 Reverts [56618].
 See #59412, #59385, #59313.
 }}}

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


More information about the wp-trac mailing list