From 7ed8a81a724966778ec053661112f057d5ec1541 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Tue, 4 Apr 2023 13:38:00 +0300 Subject: [PATCH] remove useless check for empty fallback navigation --- packages/block-library/src/navigation/index.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index 9ea7d3024e3a1d..aa572a5c20ac6d 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -471,10 +471,6 @@ function block_core_navigation_get_fallback_blocks() { $fallback_blocks = ! empty( $maybe_fallback ) ? $maybe_fallback : $fallback_blocks; } - // Normalizing blocks may result in an empty array of blocks if they were all `null` blocks. - // In this case default empty blocks. - $fallback_blocks = ! empty( $fallback_blocks ) ? $fallback_blocks : array(); - /** * Filters the fallback experience for the Navigation block. *