wp-includes/blocks.php:1335Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the wrapper block.
$serialized_blockstringstringfunction extract_serialized_parent_block( $serialized_block ) { $start = strpos( $serialized_block, '-->' ) + strlen( '-->' ); $end = strrpos( $serialized_block, '<!--' ); return substr( $serialized_block, 0, $start ) . substr( $serialized_block, $end );}Introduced in 6.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/blocks.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.