Skip to content

Commit

Permalink
fix: dont overload NodeWithEditorBlocks.flat (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine authored Jun 24, 2024
1 parent ca3e070 commit a910d62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-seas-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/wp-graphql-content-blocks": patch
---

fix: Don't overload `NodeWithEditorBlocks.flat` on implementing Interfaces.
6 changes: 0 additions & 6 deletions includes/Type/InterfaceType/PostTypeBlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down

0 comments on commit a910d62

Please sign in to comment.