Skip to content

Commit 718a2ff

Browse files
authored
Merge pull request #444 from justlevine/chore/misc-fixes
fix: various 0.13.0 regressions
2 parents dfeded3 + 3ad0e60 commit 718a2ff

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- fix: Check if classes are loaded by a different autoloader before attempting to autoload them. H/t @cvanh
66
- fix: Return `wp_max_upload_size()` instead of `null` if `GfFieldWithFileSizeSetting.maxFileSize` is `null`. H/t @Gytjarek
7+
- fix: Fix typo in Autoloader release URL.
8+
- fix: Ensure a valid source ID exists before attempting to resolve a `connectedFormField`.
79
- ci: Replace calls to `docker-compose` with `docker compose`.
810

911
## v0.13.0

src/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected static function missing_autoloader_notice(): void {
6969
// Translators: %s is a link to the latest release file.
7070
$error_message = __( 'WPGraphQL for GF: The Composer autoloader was not found. This usually means you downloaded the repository source code instead of the latest %s release file. If you are intentionally using the GitHub source code, make sure to run `composer install`.', 'wp-graphql-gravity-forms' );
7171

72-
$release_link = '<a href="https://github.com/axewp/wp-graphql-gravity-forms/releases/latest/download/wp-graphql-gravity-forms.zip" target="_blank">wp-graphql-gravityforms.zip</a>';
72+
$release_link = '<a href="https://github.com/axewp/wp-graphql-gravity-forms/releases/latest/download/wp-graphql-gravity-forms.zip" target="_blank">wp-graphql-gravity-forms.zip</a>';
7373

7474
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
7575
error_log( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- This is a development notice.

src/Type/WPObject/FieldError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function get_fields(): array {
5151
'type' => FormField::$type,
5252
'description' => __( 'The form field that the error is connected to.', 'wp-graphql-gravity-forms' ),
5353
'resolve' => static function ( $source, array $args, AppContext $context ) {
54-
if ( ! isset( $source['id'] ) || ! isset( $source['formId'] ) ) {
54+
if ( empty( $source['id'] ) || empty( $source['formId'] ) ) {
5555
return null;
5656
}
5757

src/Type/WPObject/Order/OrderItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function get_fields(): array {
109109
'type' => FormField::$type,
110110
'description' => __( 'The form field that the order item is connected to', 'wp-graphql-gravity-forms' ),
111111
'resolve' => static function ( $source, array $args, AppContext $context ) {
112-
if ( ! isset( $context->gfForm ) || ! isset( $source['id'] ) ) {
112+
if ( ! isset( $context->gfForm ) || empty( $source['id'] ) ) {
113113
return null;
114114
}
115115

0 commit comments

Comments
 (0)