Make WordPress Core

Changeset 57066 for trunk


Ignore:
Timestamp:
11/06/2023 01:35:28 PM (7 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].

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r57065 r57066  
    765765 * any blocks hooked `before` the given block and as its parent's `first_child`, respectively.
    766766 *
     767 * This function is meant for internal use only.
     768 *
    767769 * @since 6.4.0
    768770 * @access private
     
    839841 * `last_child`, respectively.
    840842 *
     843 * This function is meant for internal use only.
     844 *
    841845 * @since 6.4.0
    842846 * @access private
     
    10361040 * into the return value. Prefer `serialize_block` when preparing a block to be saved to post content.
    10371041 *
     1042 * This function is meant for internal use only.
     1043 *
    10381044 * @since 6.4.0
     1045 * @access private
    10391046 *
    10401047 * @see serialize_block()
     
    11181125 * into the return value. Prefer `serialize_blocks` when preparing blocks to be saved to post content.
    11191126 *
     1127 * This function is meant for internal use only.
     1128 *
    11201129 * @since 6.4.0
     1130 * @access private
    11211131 *
    11221132 * @see serialize_blocks()
Note: See TracChangeset for help on using the changeset viewer.