From 530b18a60d46c92943acf714acc1dd83008e9857 Mon Sep 17 00:00:00 2001 From: Theo <328805+theodesp@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:37:43 +0000 Subject: [PATCH 1/6] fix: remove unecessary image block width type --- includes/Blocks/CoreImage.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/Blocks/CoreImage.php b/includes/Blocks/CoreImage.php index caf6c81a..98a63d28 100644 --- a/includes/Blocks/CoreImage.php +++ b/includes/Blocks/CoreImage.php @@ -32,7 +32,6 @@ class CoreImage extends Block { 'source' => 'attribute', 'attribute' => 'src', ], - 'width' => [ 'type' => 'string' ], ]; /** @@ -43,7 +42,6 @@ class CoreImage extends Block { */ public function __construct( WP_Block_Type $block, Registry $block_registry ) { parent::__construct( $block, $block_registry ); - register_graphql_field( $this->type_name, 'mediaDetails', From fd085dc2aef35d9a2ffaa6de66d2e145f666a94b Mon Sep 17 00:00:00 2001 From: Theo <328805+theodesp@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:47:23 +0000 Subject: [PATCH 2/6] chore: add changeset --- .changeset/many-garlics-divide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/many-garlics-divide.md diff --git a/.changeset/many-garlics-divide.md b/.changeset/many-garlics-divide.md new file mode 100644 index 00000000..fd70b387 --- /dev/null +++ b/.changeset/many-garlics-divide.md @@ -0,0 +1,5 @@ +--- +"@wpengine/wp-graphql-content-blocks": patch +--- + +Fix: reverts CoreImage block width type introduced at this [PR](https://github.com/wpengine/wp-graphql-content-blocks/pull) From 0c7a5f064420b3220ccd0a55008e96fd566e7c53 Mon Sep 17 00:00:00 2001 From: Theo <328805+theodesp@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:50:27 +0000 Subject: [PATCH 3/6] chore: phpcs lint --- includes/Blocks/CoreImage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Blocks/CoreImage.php b/includes/Blocks/CoreImage.php index 98a63d28..543cee13 100644 --- a/includes/Blocks/CoreImage.php +++ b/includes/Blocks/CoreImage.php @@ -42,6 +42,7 @@ class CoreImage extends Block { */ public function __construct( WP_Block_Type $block, Registry $block_registry ) { parent::__construct( $block, $block_registry ); + register_graphql_field( $this->type_name, 'mediaDetails', From 054e3a0c520da430c214b76b65be0bed8aed0f04 Mon Sep 17 00:00:00 2001 From: Theofanis Despoudis <328805+theodesp@users.noreply.github.com> Date: Thu, 6 Feb 2025 14:40:59 +0000 Subject: [PATCH 4/6] Update .changeset/many-garlics-divide.md Co-authored-by: Colin Murphy --- .changeset/many-garlics-divide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/many-garlics-divide.md b/.changeset/many-garlics-divide.md index fd70b387..7fc7b572 100644 --- a/.changeset/many-garlics-divide.md +++ b/.changeset/many-garlics-divide.md @@ -2,4 +2,4 @@ "@wpengine/wp-graphql-content-blocks": patch --- -Fix: reverts CoreImage block width type introduced at this [PR](https://github.com/wpengine/wp-graphql-content-blocks/pull) +Fix: reverts CoreImage block width type introduced at this [PR](https://github.com/wpengine/wp-graphql-content-blocks/pull/130) From 1c960902b5b17896691f11f888006e53ad581244 Mon Sep 17 00:00:00 2001 From: Theo <328805+theodesp@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:45:37 +0000 Subject: [PATCH 5/6] chore: phpcs fix --- includes/Blocks/CoreImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Blocks/CoreImage.php b/includes/Blocks/CoreImage.php index 543cee13..3f31b5ec 100644 --- a/includes/Blocks/CoreImage.php +++ b/includes/Blocks/CoreImage.php @@ -42,7 +42,7 @@ class CoreImage extends Block { */ public function __construct( WP_Block_Type $block, Registry $block_registry ) { parent::__construct( $block, $block_registry ); - + register_graphql_field( $this->type_name, 'mediaDetails', From 18d9e8b3a81b6a2af0a1fe70c12fd0771946ac04 Mon Sep 17 00:00:00 2001 From: Theofanis Despoudis <328805+theodesp@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:06:51 +0000 Subject: [PATCH 6/6] Update many-garlics-divide.md --- .changeset/many-garlics-divide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.changeset/many-garlics-divide.md b/.changeset/many-garlics-divide.md index 7fc7b572..8534ef43 100644 --- a/.changeset/many-garlics-divide.md +++ b/.changeset/many-garlics-divide.md @@ -1,5 +1,7 @@ --- -"@wpengine/wp-graphql-content-blocks": patch +"@wpengine/wp-graphql-content-blocks": major --- Fix: reverts CoreImage block width type introduced at this [PR](https://github.com/wpengine/wp-graphql-content-blocks/pull/130) + +**NOTE**: This change is only impactful for users running WordPress versions earlier than v6.3.2.