From e33647b55717d64495e7ade86f59087df7e7ba78 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Thu, 21 Nov 2024 10:07:53 +0100 Subject: [PATCH] Navigation block: Remove block_core_navigation_remove_serialized_parent_block --- packages/block-library/src/navigation/index.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index ae3b9620a33584..79b535ee2d6e40 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -1436,20 +1436,6 @@ function block_core_navigation_get_most_recently_published_navigation() { return null; } -/** - * Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks. - * - * @since 6.5.0 - * - * @param string $serialized_block The serialized markup of a block and its inner blocks. - * @return string - */ -function block_core_navigation_remove_serialized_parent_block( $serialized_block ) { - $start = strpos( $serialized_block, '-->' ) + strlen( '-->' ); - $end = strrpos( $serialized_block, '