Skip to content

Commit 465f727

Browse files
committed
chore: bump minimum wp + gf versions
1 parent a1a82b6 commit 465f727

File tree

7 files changed

+11
-35
lines changed

7 files changed

+11
-35
lines changed

.github/workflows/integration-testing.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ jobs:
4444
wordpress: '6.1'
4545
- php: '7.4'
4646
wordpress: '6.0'
47-
- php: '7.4'
48-
wordpress: '5.9'
49-
- php: '7.4'
50-
wordpress: '5.8'
51-
- php: '7.4'
52-
wordpress: '5.7'
5347
exclude:
5448
# New WP versions that dont support older PHP versions
5549
- php: "8.0"

.phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Tests for WordPress version compatibility.
4242
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties
4343
-->
44-
<config name="minimum_supported_wp_version" value="5.4.1"/>
44+
<config name="minimum_supported_wp_version" value="6.0"/>
4545

4646
<!-- Rules: WPGraphQL Coding Standards -->
4747
<!-- https://github.com/AxeWP/WPGraphQL-Coding-Standards/WPGraphQL/ruleset.xml -->

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
## [Unreleased]
44

55
- feat!: Refactor `FormsConnectionResolver` and `EntriesConnectionResolver` for compatibility with WPGraphQL v1.26.0 improvements.
6-
- chore!: Bump minimum WPGraphQL to v1.26.0
6+
- chore!: Bump minimum WPGraphQL version to v1.26.0.
7+
- chore!: Bump minimum WordPress version to v6.0.0.
8+
- chore!: Bump minimum Gravity Forms version to v2.7.0.
79
- chore: Update Composer dev-dependencies and fix test compatibility with `wp-graphql-test-case` v3.0.x.
810

911
## v0.12.6.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Our hope for this open source project is that it will enable more teams to lever
2626
## System Requirements
2727

2828
* PHP 7.4-8.2+
29-
* WordPress 5.4.1+
29+
* WordPress 6.0+
3030
* WPGraphQL 1.26.0+
31-
* Gravity Forms 2.5+ (Recommend: v2.6+)
31+
* Gravity Forms 2.7+
3232
* **Recommended**: [WPGraphQL Upload](https://github.com/dre1080/wp-graphql-upload) - used for [File Upload and Post Image submissions](docs/submitting-forms.md).
3333

3434
## Quick Install

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== WPGraphQL for Gravity Forms ===
22
Contributors: justlevine, kellenmace, mtdbyanechko, tinytoolbox
33
Tags: Forms, GraphQL, Gatsby, Headless, GF, Gravity, WPGraphQL, React
4-
Requires at least: 5.4.1
4+
Requires at least: 6.0
55
Tested up to: 6.5
66
Requires PHP: 7.4
7-
Requires Gravity Forms: 2.5.0
7+
Requires Gravity Forms: 2.7.0
88
Requires WPGraphQL: 1.26.0
99
Stable tag: 0.12.6.1
1010
Maintained at: https://github.com/axewp/wp-graphql-gravity-forms

src/Type/WPObject/FormField/FieldValue/FieldValues.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -471,26 +471,6 @@ protected static function get_file_upload_extra_entry_metadata( GF_Field_FileUpl
471471

472472
// Generate the file info for all files.
473473
foreach ( $file_values as $file_value ) {
474-
// Backcompat with v2.5x.
475-
if ( version_compare( GFCommon::$version, '2.6.0', '<' ) ) {
476-
$time = current_time( 'mysql' );
477-
$y = substr( $time, 0, 4 );
478-
$m = substr( $time, 5, 2 );
479-
$default_target_root = GFFormsModel::get_upload_path( $form['id'] ) . sprintf( '/%s/%s/', $y, $m );
480-
$default_target_root_url = GFFormsModel::get_upload_url( $form['id'] ) . sprintf( '/%s/%s/', $y, $m );
481-
482-
$filename = explode( '/', $file_value );
483-
484-
$info[ $file_value ] = [
485-
'url' => $file_value,
486-
'basePath' => $default_target_root,
487-
'baseUrl' => $default_target_root_url,
488-
'filename' => end( $filename ),
489-
'hash' => wp_hash( $form['id'] ),
490-
];
491-
continue;
492-
}
493-
494474
$stored_path_info = gform_get_meta( $entry['id'], $field::get_file_upload_path_meta_key_hash( $file_value ) );
495475

496476
if ( empty( $stored_path_info ) ) {

wp-graphql-gravity-forms.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
* Version: 0.12.6
1111
* Text Domain: wp-graphql-gravity-forms
1212
* Domain Path: /languages
13-
* Requires at least: 5.4.1
13+
* Requires at least: 6.0
1414
* Tested up to: 6.5
1515
* Requires PHP: 7.4
1616
* Requires Plugins: wp-graphql
1717
* WPGraphQL requires at least: 1.26.0
18-
* GravityForms requires at least: 2.5.0
18+
* GravityForms requires at least: 2.7.0
1919
* License: GPL-3
2020
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
2121
*
@@ -75,7 +75,7 @@ function gf_graphql_constants(): void {
7575
*/
7676
function gf_graphql_dependencies_not_ready(): array {
7777
$wpgraphql_version = '1.26.0';
78-
$gf_version = '2.5.0';
78+
$gf_version = '2.7.0';
7979

8080
$deps = [];
8181

0 commit comments

Comments
 (0)