From bbbd052669a158618afc14b1c0212fc0fe250262 Mon Sep 17 00:00:00 2001 From: Matthew Reishus Date: Tue, 24 Sep 2024 15:16:42 +0000 Subject: [PATCH] fix broken test --- src/wp-includes/blocks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 05b9253091ecc..577bafe1fd0c9 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -436,6 +436,7 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) { } // Try to get metadata from the static cache for core blocks. + $metadata = array(); if ( $has_metadata_from_registry ) { $metadata = WP_Block_Metadata_Registry::get_metadata( $collection, $block_identifier ); }