[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 15:28:07 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 dev-reviewed  |     Focuses:  docs
-------------------------------------------+-----------------------------
Changes (by hellofromTonya):

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


Comment:

 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/59783#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list