From a910d62d79df1db247262a7437c2a68fdb6f403e Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Mon, 24 Jun 2024 12:47:03 +0300 Subject: [PATCH] fix: dont overload `NodeWithEditorBlocks.flat` (#246) --- .changeset/wild-seas-buy.md | 5 +++++ includes/Type/InterfaceType/PostTypeBlockInterface.php | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .changeset/wild-seas-buy.md diff --git a/.changeset/wild-seas-buy.md b/.changeset/wild-seas-buy.md new file mode 100644 index 00000000..d10ecdc2 --- /dev/null +++ b/.changeset/wild-seas-buy.md @@ -0,0 +1,5 @@ +--- +"@wpengine/wp-graphql-content-blocks": patch +--- + +fix: Don't overload `NodeWithEditorBlocks.flat` on implementing Interfaces. diff --git a/includes/Type/InterfaceType/PostTypeBlockInterface.php b/includes/Type/InterfaceType/PostTypeBlockInterface.php index 965800bd..b5da76e7 100644 --- a/includes/Type/InterfaceType/PostTypeBlockInterface.php +++ b/includes/Type/InterfaceType/PostTypeBlockInterface.php @@ -62,12 +62,6 @@ public static function register_type( string $post_type, array $block_names = [] 'type' => [ 'list_of' => ucfirst( $post_type ) . 'EditorBlock', ], - 'args' => [ - 'flat' => [ - 'description' => __( 'Returns the list of blocks as a flat list if true', 'wp-graphql-content-blocks' ), - 'type' => 'Boolean', - ], - ], 'description' => sprintf( // translators: %s is the post type. __( 'List of %s editor blocks', 'wp-graphql-content-blocks' ),