Skip to content

Commit 7c83c40

Browse files
author
Gravity Forms
committed
Updates to 4.0.0
1 parent 32dd759 commit 7c83c40

File tree

6 files changed

+2267
-0
lines changed

6 files changed

+2267
-0
lines changed

campaignmonitor.php

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?php
2+
3+
// don't load directly
4+
if ( ! defined( 'ABSPATH' ) ) {
5+
die();
6+
}
7+
8+
/*
9+
Plugin Name: Gravity Forms Campaign Monitor Add-On
10+
Plugin URI: https://gravityforms.com
11+
Description: Integrates Gravity Forms with Campaign Monitor, allowing form submissions to be automatically sent to your Campaign Monitor account.
12+
Version: 4.0.0
13+
Author: Gravity Forms
14+
Author URI: https://gravityforms.com
15+
License: GPL-2.0+
16+
Text Domain: gravityformscampaignmonitor
17+
Domain Path: /languages
18+
19+
------------------------------------------------------------------------
20+
Copyright 2009-2023 Rocketgenius, Inc.
21+
22+
This program is free software; you can redistribute it and/or modify
23+
it under the terms of the GNU General Public License as published by
24+
the Free Software Foundation; either version 2 of the License, or
25+
(at your option) any later version.
26+
27+
This program is distributed in the hope that it will be useful,
28+
but WITHOUT ANY WARRANTY; without even the implied warranty of
29+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30+
GNU General Public License for more details.
31+
32+
You should have received a copy of the GNU General Public License
33+
along with this program; if not, write to the Free Software
34+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35+
*/
36+
37+
define( 'GF_CAMPAIGN_MONITOR_VERSION', '4.0.0' );
38+
39+
// If Gravity Forms is loaded, bootstrap the Campaign Monitor Add-On.
40+
add_action( 'gform_loaded', array( 'GF_CampaignMonitor_Bootstrap', 'load' ), 5 );
41+
42+
/**
43+
* Class GF_CampaignMonitor_Bootstrap
44+
*
45+
* Handles the loading of the Campaign Monitor Add-On and registers with the Add-On framework.
46+
*/
47+
class GF_CampaignMonitor_Bootstrap {
48+
49+
/**
50+
* If the Feed Add-On Framework exists, Campaign Monitor Add-On is loaded.
51+
*
52+
* @access public
53+
* @static
54+
*/
55+
public static function load() {
56+
57+
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
58+
return;
59+
}
60+
61+
require_once( 'class-gf-campaignmonitor.php' );
62+
63+
GFAddOn::register( 'GFCampaignMonitor' );
64+
65+
}
66+
67+
}
68+
69+
/**
70+
* Returns an instance of the GFCampaignMonitor class
71+
*
72+
* @see GFCampaignMonitor::get_instance()
73+
*
74+
* @return object GFCampaignMonitor
75+
*/
76+
function gf_campaignmonitor() {
77+
return GFCampaignMonitor::get_instance();
78+
}

change_log.txt

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
### 4.0.0 | 2023-12-20
2+
- Fixed the PHP 8.2 creation of dynamic property deprecation notice that occurs on the settings page.
3+
- Added support for async (background) feed processing to improve form submission performance.
4+
5+
### 3.9 | 2020-09-21
6+
- Added support for Gravity Forms 2.5.
7+
8+
9+
### 3.8 | 2020-03-10
10+
- Added support for feed duplication.
11+
- Added translations for Hebrew, Hindi, Japanese, and Turkish.
12+
- Updated the API Key setting description.
13+
- Fixed an issue where the Campaign Monitor API could ignore values passed from Multi Select fields.
14+
15+
16+
### 3.7 | 2018-04-02
17+
- Added security enhancements.
18+
- Added logging statement.
19+
- Added License GPL to plugin header.
20+
- Updated Plugin URI and Author URI to use https.
21+
22+
23+
### 3.6 | 2018-01-05
24+
- Fixed the string replacement for the Contact List tooltip.
25+
26+
27+
### 3.5 | 2017-05-23
28+
- Fixed a fatal error which could occur with PHP 7.1 when preparing the checkbox field value.
29+
- Fixed a fatal error with PHP < 5.5.
30+
- Fixed strings for translations.
31+
- Updated API library to work with PHP 7+.
32+
33+
34+
### 3.4 | 2015-08-07
35+
- Added form specific version of the *gform_campaignmonitor_override_blank_custom_fields* filter.
36+
- Added form specific version of the *gform_campaignmonitor_override_subscriber* filter.
37+
- Added form and field specific versions of the *gform_campaignmonitor_field_value* filter.
38+
- Updated minimum Gravity Forms version to 1.9.3.
39+
- Updated 'Opt-In Condition' setting label to 'Conditional Logic'.
40+
- Updated feed processing to use get_field_value() when retrieving mapped field values, enabling support for GF_Field::get_value_export with GF 1.9.12.4 and later.
41+
- Updated 'API Client ID' label on plugin settings page to 'Client API Key' so it's consistent with the wording used by Campaign Monitor.
42+
- Fixed an issue with the feed list page if the API key not valid.
43+
- Fixed a PHP notice if no clients are configured in the Campaign Monitor account.
44+
- Fixed an issue with the upgrade routine which caused it run even if a pre-framework version hadn't been installed.
45+
46+
47+
### 3.3 | 2015-04-20
48+
- Added support for the middle name input when preparing Name field values.
49+
- Updated logging statements.
50+
- Fixed a low severity security vulnerability in the admin area which could be exploited by authenticated users with form administration permissions.
51+
- Fixed issues with multi-select fields not sending data in the expected format
52+
- Fixed issue where client list was displayed even when API Client ID was entered.
53+
54+
55+
### 3.2 | 2014-11-21
56+
- Added *gform_campaignmonitor_override_subscriber* filter to allow users to modify or add subscriber parameters sent to the Campaign Monitor API.
57+
- Fixed issue where email address mapping was not being required.
58+
- Fixed issue during upgrade that prevented data from being transfered to new structure under certain situations.
59+
60+
61+
### 3.1 | 2014-11-04
62+
- Fixed issue during upgrade that prevented data from being transfered to new structure under certain situations.
63+
64+
65+
### 3.0 | 2014-10-27
66+
- Added Add-on Framework integration.
67+
- Added function *gf_campaignmonitor* to easily get a Campaign Monitor instance.
68+
- Added missing *gform_campaignmonitor_override_blank_custom_fields* hook.
69+
- Added *gform_campaignmonitor_field_value* filter to allow add-ons to modify values sent to the Campaign Monitor API.
70+
- Added text domain/path to header.
71+
- Updated Campaign Monitor API to version 4.0.0 to fix some conflicts with other active plugins using Campaign Monitor.
72+
- Updated required version of Gravity Forms to 1.8.17.
73+
- Updated POT file.
74+
- Fixed notices.
75+
76+
77+
### 2.3
78+
- Fixed bug that threw a javascript error in TruncateMiddle function when text was undefined (this could happen in some instances when a label was not specified for a field).
79+
- Fixed headers already sent issue by removing blank lines at the end of files.
80+
81+
82+
### 2.2
83+
- Updated Campaign Monitor API to version 2.5.2.
84+
- Updated "Resubscribe" UI to use a label so clicking the text also checks the corresponding checkbox.
85+
86+
87+
### 2.1 | 2013-02-08
88+
- Updated AJAX URL to resolve conflict when site is running under SSL.
89+
- Updated marking the entry as subscribed to only be when the optin condition is met.
90+
- Fixed issue with special characters in Campaign Monitor field names causing items to not map.
91+
- Removed extraneous call to non-existant function: $api->listMergeVars().
92+
- Fixed issue where serialisation function not checked if already exists.
93+
94+
95+
### 2.0 | 2012-06-27
96+
- Added logging support.
97+
- Added support for Manage WP.
98+
- Added new conditional logic options (greater than, less than, contains starts with, ends with) and support for other conditional fields.
99+
- Fixed notices.
100+
- Fixed issue where product name was overriding full name for subscribers.
101+
- Added integration with PayPal so that subscribers can be added only when payment is received.
102+
- Fixed localization issue with some strings.
103+
- Fixed issue where RG_CURRENT_PAGE constant was not available when Gravity Forms was deactivated.
104+
105+
106+
### 1.9 | 2011-11-01
107+
- Fixed issue with broken function_exist conditional in API.
108+
109+
110+
### 1.8.1
111+
- Wrapped all API classes in class_exists() conditional for compatibility with other plugins using the same API.
112+
113+
114+
### 1.8 | 2011-06-23
115+
- Updated API wrapper so that it is compatible with v.3 of the Create Send API.
116+
- Removed blank strings from POT file.
117+
118+
119+
### 1.7 | 2011-06-21
120+
- Added ability to map checkbox fields.
121+
- Removing price from Product fields (drop down and radio field types), so that only the Product name is sent to Campaign Monitor.
122+
- Cleaned up debug Notice messages.
123+
124+
125+
### 1.6 | 2011-04-25
126+
- Fixed issue when using condition on a field with multiple single quote in its label.
127+
128+
129+
### 1.5 | 2011-04-13
130+
- Fixed issue when creating a feed using forms with HTML markup in field labels.
131+
- Added logic to prevent Campaign Monitor API classes from being loaded if it is already loaded by another plugin.
132+
- Third Party Modification: Check if Services_JSON class exists (line 3, apiclassesserialisation.php).
133+
- Added "Cancel" button to Edit page and updated "Save" and "Update" button verbiage.
134+
135+
136+
### 1.4 | 2010-12-15
137+
- Upgraded to Campaign Monitor API v3.
138+
- Added API Client ID option in settings to limit the Add-On to the specified client.
139+
140+
141+
### 1.3 | 2010-12-15
142+
- Fixed issue with name fields (when cofigured with "Simple" type) from being exported.
143+
144+
145+
### 1.2 | 2010-12-15
146+
- Fixed automatic upgrade issue with WP 3.0.
147+
148+
149+
### 1.1 | 2010-12-15
150+
- Fixed issue with client drop down when there was only one client configured in Campaign Monitor.
151+
152+
153+
### 1.0 | 2010-12-15
154+
- Updated POT file.
155+
156+
157+
### 0.2 | 2010-12-15
158+
- Adding Campaign Monitor capabilities to admin role upon plugin activation.
159+
- Fixed bug with condition when drop down item did not have the value property set.
160+
161+
162+
### 0.1 | 2010-12-15
163+
- Initial.

0 commit comments

Comments
 (0)