From 66254464d0e2ac45f23739974a6f302a19f9bb01 Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Wed, 11 Dec 2024 23:55:59 +0200 Subject: [PATCH] chore: post-rebase cleanup --- includes/Type/InterfaceType/EditorBlockInterface.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Type/InterfaceType/EditorBlockInterface.php b/includes/Type/InterfaceType/EditorBlockInterface.php index cab03027..a13f1e8a 100644 --- a/includes/Type/InterfaceType/EditorBlockInterface.php +++ b/includes/Type/InterfaceType/EditorBlockInterface.php @@ -9,6 +9,7 @@ use WPGraphQL\ContentBlocks\Data\ContentBlocksResolver; use WP_Block_Type_Registry; +use WPGraphQL\ContentBlocks\Utilities\WPGraphQLHelpers; /** * Class EditorBlockInterface @@ -116,7 +117,7 @@ public static function register_type(): void { 'type' => 'String', 'description' => __( 'The (GraphQL) type of the block', 'wp-graphql-content-blocks' ), 'resolve' => static function ( $block ) { - return WPGraphQLHelpers::get_type_name_for_block( $block['blockName'] ?? null ); + return $block->type; }, ], ],