Make WordPress Core

Changeset 53332


Ignore:
Timestamp:
05/02/2022 01:30:47 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Correct parameter types for serialize_block() and serialize_blocks().

This changeset clarifies the expected type for the first parameter passed to serialize_block() and serialize_blocks() functions.

Props manooweb.
Fixes #55648.
See #54729.

File:
1 edited

Legend:

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

    r53302 r53332  
    596596 * @since 5.3.1
    597597 *
    598  * @param WP_Block_Parser_Block $block A single parsed block object.
     598 * @param array $block A representative array of a single parsed block object. See WP_Block_Parser_Block.
    599599 * @return string String of rendered HTML.
    600600 */
     
    624624 * @since 5.3.1
    625625 *
    626  * @param WP_Block_Parser_Block[] $blocks Parsed block objects.
     626 * @param array[] $blocks An array of representative arrays of parsed block objects. See serialize_block().
    627627 * @return string String of rendered HTML.
    628628 */
Note: See TracChangeset for help on using the changeset viewer.