From e344b6bf4d46049a13c17555d65bdba62b6e5209 Mon Sep 17 00:00:00 2001 From: Atarime Date: Fri, 28 Oct 2022 18:17:20 +0900 Subject: [PATCH 1/3] Fix saving when using date type of form-tag --- includes/class-forms.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/class-forms.php b/includes/class-forms.php index 2a1f1cf..7729bf4 100644 --- a/includes/class-forms.php +++ b/includes/class-forms.php @@ -536,7 +536,6 @@ private function format_posted_data( $cf7_settings, $posted_data ) { } elseif ( 'date' === $group && Core\Utils::is_valid_date( $raw_value ) ) { // Fix date format. $value = Core\Utils::format_date_for_update( $raw_value ); - $value = implode( "\r", $raw_value ); } elseif ( 'file' === $group ) { // File upload. $value = null; From edc097b2ca7b3e52f9bfbe09af0761bfe1041132 Mon Sep 17 00:00:00 2001 From: Atarime Date: Fri, 28 Oct 2022 18:31:45 +0900 Subject: [PATCH 2/3] Update version and readme.txt --- fmpress-forms.php | 4 ++-- package.json | 2 +- readme.txt | 7 ++++++- tests/phpunit/fmpress-forms-test.php | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fmpress-forms.php b/fmpress-forms.php index 5d1a1c2..7ee4884 100644 --- a/fmpress-forms.php +++ b/fmpress-forms.php @@ -3,7 +3,7 @@ * Plugin Name: FMPress Forms * Plugin URI: https://www.emic.co.jp/products/ * Description: Addon for Contact Form 7. - * Version: 1.3.0 + * Version: 1.3.1 * Author: Emic Corporation * Author URI: https://www.emic.co.jp/ * License: GPLv2 or later @@ -42,7 +42,7 @@ final class FMPress_Forms { * @since 1.0.0 * @var string */ - const VERSION = '1.3.0'; + const VERSION = '1.3.1'; /** * Minimum Version of PHP diff --git a/package.json b/package.json index 2719607..c324b01 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fmpress-forms", - "version": "1.3.0", + "version": "1.3.1", "main": "Gruntfile.js", "author": "Emic Corporation", "scripts" : { diff --git a/readme.txt b/readme.txt index f8a817e..6c969f7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: emiccorp, matsuoatsushi Tags: claris, filemaker, database, contact form 7, form Requires at least: 5.7 Tested up to: 6.0 -Stable tag: 1.3.0 +Stable tag: 1.3.1 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -61,6 +61,11 @@ You must add *fm_field-* as a prefix to the beginning of the form-tag name in th == Changelog == += 1.3.1 = +Release Date: October 31, 2022 + +* Fix saving when using date type of form-tag + = 1.3.0 = Release Date: October 24, 2022 diff --git a/tests/phpunit/fmpress-forms-test.php b/tests/phpunit/fmpress-forms-test.php index 3333e46..18099df 100644 --- a/tests/phpunit/fmpress-forms-test.php +++ b/tests/phpunit/fmpress-forms-test.php @@ -66,7 +66,7 @@ public function test_constant_value() { * @return void */ public function test_plugin_version() { - $this->assertEquals( '1.3.0', self::$plugin::VERSION ); + $this->assertEquals( '1.3.1', self::$plugin::VERSION ); $droot = 'true' === getenv( 'GITLAB_CI' ) ? '/home/wordpress' : '/var/www/html'; $data = get_plugin_data("${droot}/wp-content/plugins/fmpress-forms/fmpress-forms.php"); From bf3181ad702d6359224562420892a83325d867ae Mon Sep 17 00:00:00 2001 From: Atarime Date: Fri, 28 Oct 2022 19:06:57 +0900 Subject: [PATCH 3/3] Update readme.txt --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 6c969f7..37c31ea 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ === FMPress Forms === -Contributors: emiccorp, matsuoatsushi +Contributors: emiccorp, matsuoatsushi, nue2501 Tags: claris, filemaker, database, contact form 7, form Requires at least: 5.7 Tested up to: 6.0