Skip to content

Commit 7cf6801

Browse files
committed
Removes taxonomySlug as redundant in favor to taxonomy connection instead.
1 parent f6a9fa8 commit 7cf6801

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

includes/Blocks/CorePostTerms.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,16 @@ private function register_fields(): void {
3434
register_graphql_fields(
3535
$this->type_name,
3636
[
37-
'prefix' => [
37+
'prefix' => [
3838
'type' => 'String',
3939
'description' => __( 'Prefix to display before the post terms', 'wp-graphql-content-blocks' ),
4040
'resolve' => static fn ( $block ) => isset( $block['attrs']['prefix'] ) ? (string) $block['attrs']['prefix'] : null,
4141
],
42-
'suffix' => [
42+
'suffix' => [
4343
'type' => 'String',
4444
'description' => __( 'Suffix to display after the post terms', 'wp-graphql-content-blocks' ),
4545
'resolve' => static fn ( $block ) => isset( $block['attrs']['suffix'] ) ? (string) $block['attrs']['suffix'] : null,
4646
],
47-
'taxonomySlug' => [
48-
'type' => 'String',
49-
'description' => __( 'The taxonomy slug to display terms from', 'wp-graphql-content-blocks' ),
50-
'resolve' => static fn ( $block ) => isset( $block['attrs']['term'] ) ? (string) $block['attrs']['term'] : null,
51-
],
5247
]
5348
);
5449
}

0 commit comments

Comments
 (0)