[wp-trac] [WordPress Trac] #59327: Add optional callback argument to serialize_block(s)

WordPress Trac noreply at wordpress.org
Tue Sep 19 12:35:06 UTC 2023


#59327: Add optional callback argument to serialize_block(s)
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  Bernhard Reiter
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  6.4
Component:  General          |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by Bernhard Reiter):

 In [changeset:"56618" 56618]:
 {{{
 #!CommitTicketReference repository="" revision="56618"
 Blocks: Implement block insertion functions.

 For #59313, we need to implement functions to insert a given parsed block
 into another parsed block's inner blocks, and to prepend and append to
 that array, respectively.

 We will use those functions in combination with
 `traverse_and_serialize_blocks` (see #59327) to implement automatic
 insertion of hooked blocks into block templates and patterns.

 Props gziolo.
 Fixes #59385.
 }}}

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


More information about the wp-trac mailing list