Make WordPress Core

Ticket #55648: serialize-block-doc.diff

File serialize-block-doc.diff, 906 bytes (added by manooweb, 2 years ago)
  • src/wp-includes/blocks.php

    diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
    index 2f418a1a20..adaf1ae255 100644
    a b function get_comment_delimited_block_content( $block_name, $block_attributes, $b 
    595595 *
    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 */
    601601function serialize_block( $block ) {
    function serialize_block( $block ) { 
    623623 *
    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 */
    629629function serialize_blocks( $blocks ) {