From 23d7106975db016225763af20cb9de6bc7a9a8d8 Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:15:58 -0500 Subject: [PATCH 1/6] Replace '@since NEXT' with '@since 1.3.1' --- src/View/Checkout/CampaignId.php | 2 +- src/View/Checkout/NewsletterPreferenceCheckbox.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Checkout/CampaignId.php b/src/View/Checkout/CampaignId.php index 52ef709c..af481c6f 100644 --- a/src/View/Checkout/CampaignId.php +++ b/src/View/Checkout/CampaignId.php @@ -49,7 +49,7 @@ public function register_hooks() { * @author Michael Beckwith * @since 2019-08-22 * @author Rebekah Van Epps - * @since NEXT Changed hook to `woocommerce_checkout_create_order` and changed "save order meta" function. + * @since 1.3.1 Changed hook to `woocommerce_checkout_create_order` and changed "save order meta" function. * * @param WC_Order $order WC Order instance. * @return void diff --git a/src/View/Checkout/NewsletterPreferenceCheckbox.php b/src/View/Checkout/NewsletterPreferenceCheckbox.php index 9ed88ce3..afb22442 100644 --- a/src/View/Checkout/NewsletterPreferenceCheckbox.php +++ b/src/View/Checkout/NewsletterPreferenceCheckbox.php @@ -152,7 +152,7 @@ public function save_user_preference( $user_id ) { * @author Jeremy Ward * @since 2019-03-18 * @author Rebekah Van Epps - * @since NEXT Changed hook to `woocommerce_checkout_create_order` and changed "save order meta" function. + * @since 1.3.1 Changed hook to `woocommerce_checkout_create_order` and changed "save order meta" function. * * @param WC_Order $order WC Order instance. * @return void From 62e985a6165abb0d7557d158623fc95c200092aa Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:17:42 -0500 Subject: [PATCH 2/6] Increment PLUGIN_VERSION constant to 1.3.1 --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 81558c9e..e8663bff 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -46,7 +46,7 @@ final class Plugin extends ServiceRegistrar { * @since 1.0.0 * @var string */ - const PLUGIN_VERSION = '1.3.0'; + const PLUGIN_VERSION = '1.3.1'; /** * Whether the plugin is currently active. From 17f35a5c77afb779d9e7de393c73991b321af7ba Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:18:20 -0500 Subject: [PATCH 3/6] Increment Version in plugin header to 1.3.1 --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index bb10b648..2eff21d6 100644 --- a/plugin.php +++ b/plugin.php @@ -10,7 +10,7 @@ * Plugin Name: Constant Contact + WooCommerce * Description: Add products to your emails and sync your contacts. * Plugin URI: https://github.com/WebDevStudios/constant-contact-woocommerce - * Version: 1.3.0 + * Version: 1.3.1 * Author: Constant Contact * Author URI: https://www.constantcontact.com/ * Text Domain: cc-woo From 3e40d5440be78e2c60eb3e816cc3839138457077 Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:18:57 -0500 Subject: [PATCH 4/6] Increment Stable tag in README.txt to 1.3.1 --- README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.txt b/README.txt index c9422718..c678ac92 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: constantcontact, webdevstudios, znowebdev, jmichaelward, ggwicz, r Tags: capture, contacts, constant contact, constant contact form, constant contact newsletter, constant contact official, contact forms, email, form, forms, marketing, mobile, newsletter, opt-in, plugin, signup, subscribe, subscription, widget Requires at least: 5.2.2 Tested up to: 5.4.0 -Stable tag: 1.3.0 +Stable tag: 1.3.1 Requires PHP: 7.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html From a913af6d468fc9482d7241fbdec2c0dc05cb3de1 Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:19:36 -0500 Subject: [PATCH 5/6] Increment version in package.json to 1.3.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 858b9236..01c3e4ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "constant-contact-woocommerce", - "version": "1.3.0", + "version": "1.3.1", "description": "", "main": "index.js", "dependencies": { From a7388c0902f5eb2a1e9e8ed98817ad1074b5d2f2 Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Thu, 30 Apr 2020 19:20:09 -0500 Subject: [PATCH 6/6] Add 1.3.1 to Changelog in README.txt --- README.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.txt b/README.txt index c678ac92..372f107c 100644 --- a/README.txt +++ b/README.txt @@ -43,6 +43,11 @@ With Constant Contact you can: == Changelog == += 1.3.1 = + +* Tweak - Change `CampaignId::save_user_campaign_id_to_order` and `NewsletterPreferenceCheckbox::save_user_preference_to_order` methods to fire on `woocommerce_checkout_create_order` hook. +* Tweak - Replace `add_post_meta` usage with `$order->update_meta_data` in `CampaignId::save_user_campaign_id_to_order` and `NewsletterPreferenceCheckbox::save_user_preference_to_order` methods. + = 1.3.0 = * Updated - Revised abandoned cart functionality to instead be abandoned checkouts