_excerpt_render_inner_columns_blocks

The timeline below displays how wordpress function _excerpt_render_inner_columns_blocks has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Render inner blocks from the `core/columns` block for generating an excerpt.
 *
 * @since 5.2.0
 * @access private
 * @deprecated 5.8.0 Use _excerpt_render_inner_blocks() introduced in 5.8.0.
 *
 * @see _excerpt_render_inner_blocks()
 *
 * @param array $columns        The parsed columns block.
 * @param array $allowed_blocks The list of allowed inner blocks.
 * @return string The rendered inner blocks.
 */
function _excerpt_render_inner_columns_blocks($columns, $allowed_blocks)
{
    _deprecated_function(__FUNCTION__, '5.8.0', '_excerpt_render_inner_blocks()');
    return _excerpt_render_inner_blocks($columns, $allowed_blocks);
}

WordPress Version: 5.8

/**
 * Render inner blocks from the `core/columns` block for generating an excerpt.
 *
 * @since 5.2.0
 * @deprecated 5.8.0
 *
 * @access private
 *
 * @param array $columns        The parsed columns block.
 * @param array $allowed_blocks The list of allowed inner blocks.
 * @return string The rendered inner blocks.
 */
function _excerpt_render_inner_columns_blocks($columns, $allowed_blocks)
{
    _deprecated_function(__FUNCTION__, '5.8.0', '_excerpt_render_inner_blocks()');
    return _excerpt_render_inner_blocks($columns, $allowed_blocks);
}

WordPress Version: 5.2

/**
 * Render inner blocks from the `core/columns` block for generating an excerpt.
 *
 * @since 5.2.0
 * @access private
 *
 * @param array $columns        The parsed columns block.
 * @param array $allowed_blocks The list of allowed inner blocks.
 * @return string The rendered inner blocks.
 */
function _excerpt_render_inner_columns_blocks($columns, $allowed_blocks)
{
    $output = '';
    foreach ($columns['innerBlocks'] as $column) {
        foreach ($column['innerBlocks'] as $inner_block) {
            if (in_array($inner_block['blockName'], $allowed_blocks, true) && empty($inner_block['innerBlocks'])) {
                $output .= render_block($inner_block);
            }
        }
    }
    return $output;
}