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
This commit is contained in:
Jb Audras
2022-05-02 13:30:47 +00:00
parent 50f2d7da7d
commit 9e6e4b5893
+2 -2
View File
@@ -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 ) {