Make WordPress Core

Changeset 57071

Timestamp:
11/06/2023 03:27:52 PM (9 months ago)
Author:
hellofromTonya
Message:

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.

Location:
branches/6.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/src/wp-includes/blocks.php

    r57043 r57071  
    759759 * any blocks hooked `before` the given block and as its parent's `first_child`, respectively.
    760760 *
     761
     762
    761763 * @since 6.4.0
    762764 * @access private
     
    833835 * `last_child`, respectively.
    834836 *
     837
     838
    835839 * @since 6.4.0
    836840 * @access private
     
    10301034 * into the return value. Prefer `serialize_block` when preparing a block to be saved to post content.
    10311035 *
     1036
     1037
    10321038 * @since 6.4.0
     1039
    10331040 *
    10341041 * @see serialize_block()
     
    11121119 * into the return value. Prefer `serialize_blocks` when preparing blocks to be saved to post content.
    11131120 *
     1121
     1122
    11141123 * @since 6.4.0
     1124
    11151125 *
    11161126 * @see serialize_blocks()
Note: See TracChangeset for help on using the changeset viewer.