From 39447ed7da9202eb8198b6748b2022fe09517f9a Mon Sep 17 00:00:00 2001 From: Geoff Dusome Date: Fri, 28 Jul 2023 15:38:44 -0400 Subject: [PATCH] update block registration function --- wp-content/plugins/core/src/Blocks/Block_Registrar.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-content/plugins/core/src/Blocks/Block_Registrar.php b/wp-content/plugins/core/src/Blocks/Block_Registrar.php index 5cb41b5d..dd0a66a4 100644 --- a/wp-content/plugins/core/src/Blocks/Block_Registrar.php +++ b/wp-content/plugins/core/src/Blocks/Block_Registrar.php @@ -21,10 +21,7 @@ public function register( string $block_name, string $blocks_dir = self::BLOCKS_ ]; } - register_block_type( - trailingslashit( get_stylesheet_directory() ) . $blocks_dir . $block_name . '/block.json', - $args - ); + register_block_type_from_metadata( trailingslashit( get_stylesheet_directory() ) . $blocks_dir . $block_name . '/block.json', $args ); } /**