[wp-trac] [WordPress Trac] #59783: Block Hooks: Mark and document publicly available global functions as being Core-only internal functions.

WordPress Trac noreply at wordpress.org
Mon Nov 6 13:35:43 UTC 2023


#59783: Block Hooks: Mark and document publicly available global functions as being
Core-only internal functions.
------------------------------+-----------------------------
 Reporter:  hellofromTonya    |       Owner:  hellofromTonya
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.4
Component:  Editor            |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  docs
------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57066" 57066]:
 {{{
 #!CommitTicketReference repository="" revision="57066"
 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].

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

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


More information about the wp-trac mailing list