Skip to content

Commit f6802c9

Browse files
authored
Merge pull request #44 from gravityforms/try-5523-fix-saving-form-id-as-string
Prevent the form ID from being saved as a string
2 parents 6444bed + be9db96 commit f6802c9

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.github/workflows/update-asset-readme.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ jobs:
1414
env:
1515
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
1616
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
17+
IGNORE_OTHER_FILES: true

change_log.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
= 1.7 =
2+
- Fixed a bug that sometimes causes the form ID to be stored as a string.
3+
14
= 1.6 =
25
- Updated the plugin to support installing and updating Gravity SMTP.
36

cli.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Plugin Name: Gravity Forms CLI
44
Plugin URI: https://gravityforms.com
55
Description: Manage Gravity Forms with the WP CLI.
6-
Version: 1.6
6+
Version: 1.7
77
Author: Rocketgenius
88
Author URI: https://gravityforms.com
99
License: GPL-2.0+
1010
Text Domain: gravityformscli
1111
Domain Path: /languages
1212
1313
------------------------------------------------------------------------
14-
Copyright 2016-2020 Rocketgenius, Inc.
14+
Copyright 2016-2024 Rocketgenius, Inc.
1515
1616
This program is free software; you can redistribute it and/or modify
1717
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@
3030
defined( 'ABSPATH' ) || defined( 'WP_CLI' ) || die();
3131

3232
// Defines the current version of the CLI add-on
33-
define( 'GF_CLI_VERSION', '1.6' );
33+
define( 'GF_CLI_VERSION', '1.7' );
3434

3535
define( 'GF_CLI_MIN_GF_VERSION', '1.9.17.8' );
3636

includes/class-gf-cli-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ function duplicate( $args, $assoc_args ) {
511511
*/
512512
function update( $args, $assoc_args ) {
513513

514-
$form_id = $args[0];
514+
$form_id = intval( $args[0] );
515515

516516
if ( isset( $assoc_args['form-json'] ) ) {
517517
$json_config = $assoc_args['form-json'];

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: rocketgenius
33
Tags: gravity forms
44
Requires at least: 4.2
5-
Tested up to: 6.7.0
6-
Stable tag: v1.6
5+
Tested up to: 6.7
6+
Stable tag: 1.7
77
License: GPL-2.0+
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -184,6 +184,9 @@ or
184184
1. Go to the Plugin management page of WordPress admin section and enable the 'Gravity Forms CLI' plugin
185185

186186
== ChangeLog ==
187+
= 1.7 =
188+
- Fixed a bug that sometimes causes the form ID to be stored as a string.
189+
187190
= 1.6 =
188191
- Updated the plugin to support installing and updating Gravity SMTP.
189192

0 commit comments

Comments
 (0)