[wp-trac] [WordPress Trac] #59313: Implement Block Hooks

WordPress Trac noreply at wordpress.org
Mon Nov 6 15:28:07 UTC 2023


#59313: Implement Block Hooks
-------------------------------------------------+-------------------------
 Reporter:  Bernhard Reiter                      |       Owner:  Bernhard
                                                 |  Reiter
     Type:  enhancement                          |      Status:  closed
 Priority:  high                                 |   Milestone:  6.4
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch gutenberg-merge has-unit-  |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 In [changeset:"57071" 57071]:
 {{{
 #!CommitTicketReference repository="" revision="57071"
 Blocks: Document Block Hooks functions as private.

 Documents the 4 new 6.4 Block Hooks global functions as private and for
 Core-only internal usage:

 * `make_before_block_visitor()`
 * `make_after_block_visitor()`
 * `traverse_and_serialize_block()`
 * `traverse_and_serialize_blocks()`

 This is being done as the architectural design of these new functions may
 change in the next cycle. Further denoting them as private / Core only can
 help to avoid extender churn if any of these functions are deprecated.

 Follow up to [56649], [56620].

 Reviewed by karmatosed.
 Merges [57066] to the 6.4 branch.

 Props azaozz, hellofromTonya, bernhard-reiter, gziolo, mikeschroder.
 Fixes #59783.
 See #59313.
 }}}

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


More information about the wp-trac mailing list