Skip to content

Commit 5de366d

Browse files
authored
Merge pull request #195 from wp-graphql/main
Main
2 parents 071cfec + 153761c commit 5de366d

File tree

4 files changed

+35
-10
lines changed

4 files changed

+35
-10
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 2.2.0
4+
5+
## New Features
6+
7+
- [#181](https://github.com/wp-graphql/wpgraphql-acf/pull/181): feat: update docs Date fields to link to the RFC3339 spec
8+
9+
### Chores / Bugfixes
10+
11+
- [#182](https://github.com/wp-graphql/wpgraphql-acf/pull/182): fix: admin_enqueue_scripts callback should expect a possible null value passed to it
12+
- [#185](https://github.com/wp-graphql/wpgraphql-acf/pull/185): fix: clone field within a group field type returns null values
13+
- [#189](https://github.com/wp-graphql/wpgraphql-acf/pull/189): fix: image fields (and other connection fields) not properly resolving when queried asPreview
14+
315
## 2.1.2
416

517
### Chores / Bugfixes

readme.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: GraphQL, ACF, API, NextJS, Faust, Headless, Decoupled, React, Vue, Svelte,
44
Requires at least: 6.0
55
Tested up to: 6.4
66
Requires PHP: 7.4
7-
Stable Tag: 2.1.2
7+
Stable Tag: 2.2.0
88
License: GPL-3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -116,6 +116,18 @@ This release is a complete re-architecture of WPGraphQL for ACF, introducing bre
116116

117117
== Changelog ==
118118

119+
= 2.2.0 =
120+
121+
**New Features**
122+
123+
- [#181](https://github.com/wp-graphql/wpgraphql-acf/pull/181): feat: update docs Date fields to link to the RFC3339 spec
124+
125+
**Chores / Bugfixes**
126+
127+
- [#182](https://github.com/wp-graphql/wpgraphql-acf/pull/182): fix: admin_enqueue_scripts callback should expect a possible null value passed to it
128+
- [#185](https://github.com/wp-graphql/wpgraphql-acf/pull/185): fix: clone field within a group field type returns null values
129+
- [#189](https://github.com/wp-graphql/wpgraphql-acf/pull/189): fix: image fields (and other connection fields) not properly resolving when queried asPreview
130+
119131
= 2.1.2 =
120132

121133
**Chores / Bugfixes**

tests/_support/WPUnit/AcfFieldTestCase.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,13 +1051,6 @@ public function testQueryFieldOnPostReturnsExpectedValue() {
10511051

10521052
public function testQueryFieldOnPostAsPreviewReturnsExpectedValue() {
10531053

1054-
// disable the block editor
1055-
add_filter('use_block_editor_for_post', '__return_false');
1056-
1057-
$field_key = $this->register_acf_field();
1058-
1059-
// Save data to the post
1060-
update_field( $field_key, $this->get_data_to_store(), $this->published_post->ID );
10611054

10621055
$fragment = $this->get_query_fragment();
10631056

@@ -1083,6 +1076,14 @@ public function testQueryFieldOnPostAsPreviewReturnsExpectedValue() {
10831076
$this->markTestIncomplete( 'get_preview_data_to_store() not defined' );
10841077
}
10851078

1079+
// disable the block editor
1080+
add_filter('use_block_editor_for_post', '__return_false');
1081+
1082+
$field_key = $this->register_acf_field();
1083+
1084+
// Save data to the post
1085+
update_field( $field_key, $this->get_data_to_store(), $this->published_post->ID );
1086+
10861087
$query = '
10871088
query AcfFieldOnPost ($id: ID! $asPreview:Boolean) {
10881089
post( id: $id idType: DATABASE_ID asPreview: $asPreview) {

wpgraphql-acf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: WPGraphQL for ACF seamlessly integrates Advanced Custom Fields with WPGraphQL.
55
* Author: WPGraphQL, Jason Bahl
66
* Author URI: https://www.wpgraphql.com
7-
* Version: 2.1.2
7+
* Version: 2.2.0
88
* Text Domain: wpgraphql-acf
99
* Requires PHP: 7.3
1010
* Requires at least: 5.9
@@ -31,7 +31,7 @@
3131
}
3232

3333
if ( ! defined( 'WPGRAPHQL_FOR_ACF_VERSION' ) ) {
34-
define( 'WPGRAPHQL_FOR_ACF_VERSION', '2.1.2' );
34+
define( 'WPGRAPHQL_FOR_ACF_VERSION', '2.2.0' );
3535
}
3636

3737
if ( ! defined( 'WPGRAPHQL_FOR_ACF_VERSION_WPGRAPHQL_REQUIRED_MIN_VERSION' ) ) {

0 commit comments

Comments
 (0)