From 9e6e4b589357c1e4a55405f9d8f81ee46edf42f0 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 2 May 2022 13:30:47 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53332 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 2f418a1a20..adaf1ae255 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -595,7 +595,7 @@ function get_comment_delimited_block_content( $block_name, $block_attributes, $b * * @since 5.3.1 * - * @param WP_Block_Parser_Block $block A single parsed block object. + * @param array $block A representative array of a single parsed block object. See WP_Block_Parser_Block. * @return string String of rendered HTML. */ function serialize_block( $block ) { @@ -623,7 +623,7 @@ function serialize_block( $block ) { * * @since 5.3.1 * - * @param WP_Block_Parser_Block[] $blocks Parsed block objects. + * @param array[] $blocks An array of representative arrays of parsed block objects. See serialize_block(). * @return string String of rendered HTML. */ function serialize_blocks( $blocks ) {