diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 824c041d58..c6ce8b5d38 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -716,6 +716,16 @@ function excerpt_remove_blocks( $content ) { 'core/group', ); + /** + * Filters the list of blocks that can be used as wrapper blocks, allowing + * excerpts to be generated from the `innerBlocks` of these warppers. + * + * @since 5.8.0 + * + * @param array $allowed_wrapper_blocks The list of allowed wrapper blocks. + */ + $allowed_wrapper_blocks = apply_filters( 'excerpt_allowed_wrapper_blocks', $allowed_wrapper_blocks ); + $allowed_blocks = array_merge( $allowed_inner_blocks, $allowed_wrapper_blocks ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 18b8be97f8..f4fba08b7f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51372'; +$wp_version = '5.9-alpha-51375'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.