Version Description
- Fixed: Removed invalid property being sent to the API, causing rejected requests.
- Fixed: Failure to log API errors for support purposes.
Download this release
Release Info
Developer | constantcontact |
Plugin | Constant Contact Forms |
Version | 1.8.6 |
Comparing to | |
See all releases |
Code changes from version 1.8.5 to 1.8.6
- assets/images/check_circle.svg +0 -0
- assets/images/error.svg +0 -0
- constant-contact-forms.php +3 -3
- includes/class-api.php +8 -3
- includes/class-process-form.php +1 -0
- readme.txt +5 -1
- vendor/constantcontact/constantcontact/.gitignore +0 -25
- vendor/defuse/php-encryption/.gitignore +0 -11
- vendor/google/recaptcha/.gitignore +0 -7
- vendor/guzzlehttp/ringphp/.gitignore +0 -4
- vendor/guzzlehttp/streams/.gitignore +0 -6
- vendor/psr/log/.gitignore +0 -1
- vendor/react/promise/.gitignore +0 -5
assets/images/check_circle.svg
CHANGED
File without changes
|
assets/images/error.svg
CHANGED
File without changes
|
constant-contact-forms.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Constant Contact Forms for WordPress
|
13 |
* Plugin URI: https://www.constantcontact.com
|
14 |
* Description: Be a better marketer. All it takes is Constant Contact email marketing.
|
15 |
-
* Version: 1.8.
|
16 |
* Author: Constant Contact
|
17 |
* Author URI: https://www.constantcontact.com/index?pn=miwordpress
|
18 |
* License: GPLv3
|
@@ -72,7 +72,7 @@ class Constant_Contact {
|
|
72 |
* @since 1.0.0
|
73 |
* @var string
|
74 |
*/
|
75 |
-
const VERSION = '1.8.
|
76 |
|
77 |
/**
|
78 |
* URL of plugin directory.
|
@@ -522,7 +522,7 @@ class Constant_Contact {
|
|
522 |
* @return bool
|
523 |
*/
|
524 |
public function meets_php_requirements() {
|
525 |
-
return version_compare( PHP_VERSION, '5.
|
526 |
}
|
527 |
|
528 |
/**
|
12 |
* Plugin Name: Constant Contact Forms for WordPress
|
13 |
* Plugin URI: https://www.constantcontact.com
|
14 |
* Description: Be a better marketer. All it takes is Constant Contact email marketing.
|
15 |
+
* Version: 1.8.6
|
16 |
* Author: Constant Contact
|
17 |
* Author URI: https://www.constantcontact.com/index?pn=miwordpress
|
18 |
* License: GPLv3
|
72 |
* @since 1.0.0
|
73 |
* @var string
|
74 |
*/
|
75 |
+
const VERSION = '1.8.6';
|
76 |
|
77 |
/**
|
78 |
* URL of plugin directory.
|
522 |
* @return bool
|
523 |
*/
|
524 |
public function meets_php_requirements() {
|
525 |
+
return version_compare( PHP_VERSION, '5.6.0', '>=' );
|
526 |
}
|
527 |
|
528 |
/**
|
includes/class-api.php
CHANGED
@@ -818,8 +818,10 @@ class ConstantContact_API {
|
|
818 |
try {
|
819 |
$contact->$key = $value;
|
820 |
} catch ( Exception $e ) {
|
|
|
821 |
$extra = constant_contact_location_and_line( __METHOD__, __LINE__ );
|
822 |
-
$
|
|
|
823 |
constant_contact_set_has_exceptions();
|
824 |
break;
|
825 |
}
|
@@ -845,10 +847,12 @@ class ConstantContact_API {
|
|
845 |
* @param array $errors Errors from API.
|
846 |
*/
|
847 |
public function log_errors( $errors ) {
|
848 |
-
|
849 |
if ( is_array( $errors ) ) {
|
850 |
foreach ( $errors as $error ) {
|
851 |
-
|
|
|
|
|
|
|
852 |
}
|
853 |
}
|
854 |
}
|
@@ -857,6 +861,7 @@ class ConstantContact_API {
|
|
857 |
* Process api error response.
|
858 |
*
|
859 |
* @since 1.0.0
|
|
|
860 |
*
|
861 |
* @throws Exception
|
862 |
*
|
818 |
try {
|
819 |
$contact->$key = $value;
|
820 |
} catch ( Exception $e ) {
|
821 |
+
$errors = [];
|
822 |
$extra = constant_contact_location_and_line( __METHOD__, __LINE__ );
|
823 |
+
$errors[] = $extra . $e->getErrors();
|
824 |
+
$this->log_errors( $errors );
|
825 |
constant_contact_set_has_exceptions();
|
826 |
break;
|
827 |
}
|
847 |
* @param array $errors Errors from API.
|
848 |
*/
|
849 |
public function log_errors( $errors ) {
|
|
|
850 |
if ( is_array( $errors ) ) {
|
851 |
foreach ( $errors as $error ) {
|
852 |
+
constant_contact_maybe_log_it(
|
853 |
+
'API',
|
854 |
+
$error
|
855 |
+
);
|
856 |
}
|
857 |
}
|
858 |
}
|
861 |
* Process api error response.
|
862 |
*
|
863 |
* @since 1.0.0
|
864 |
+
* @since 1.8.6 Deprected
|
865 |
*
|
866 |
* @throws Exception
|
867 |
*
|
includes/class-process-form.php
CHANGED
@@ -293,6 +293,7 @@ class ConstantContact_Process_Form {
|
|
293 |
'ctct_usage_field',
|
294 |
'g-recaptcha-response',
|
295 |
'ctct_must_opt_in',
|
|
|
296 |
], $orig_form_id );
|
297 |
|
298 |
foreach ( $data as $key => $value ) {
|
293 |
'ctct_usage_field',
|
294 |
'g-recaptcha-response',
|
295 |
'ctct_must_opt_in',
|
296 |
+
'ctct-instance',
|
297 |
], $orig_form_id );
|
298 |
|
299 |
foreach ( $data as $key => $value ) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: constantcontact, webdevstudios, tw2113, znowebdev, ggwicz, ra
|
|
3 |
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
|
4 |
Requires at least: 5.2.0
|
5 |
Tested up to: 5.4.1
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Requires PHP: 5.6
|
@@ -35,6 +35,10 @@ BONUS: If you have a Constant Contact account, all new email addresses that you
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
38 |
= 1.8.5 =
|
39 |
* Added: Forced email notifications to admin when Constant Contact API request fails on attempted form submission.
|
40 |
* Fixed: Addressed issues with plugin error logging and addressed false-positive error messaging.
|
3 |
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
|
4 |
Requires at least: 5.2.0
|
5 |
Tested up to: 5.4.1
|
6 |
+
Stable tag: 1.8.6
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Requires PHP: 5.6
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.8.6 =
|
39 |
+
* Fixed: Removed invalid property being sent to the API, causing rejected requests.
|
40 |
+
* Fixed: Failure to log API errors for support purposes.
|
41 |
+
|
42 |
= 1.8.5 =
|
43 |
* Added: Forced email notifications to admin when Constant Contact API request fails on attempted form submission.
|
44 |
* Fixed: Addressed issues with plugin error logging and addressed false-positive error messaging.
|
vendor/constantcontact/constantcontact/.gitignore
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
# Created by .gitignore support plugin (hsz.mobi)
|
2 |
-
|
3 |
-
## Directory-based project format
|
4 |
-
.idea/
|
5 |
-
/*.iml
|
6 |
-
|
7 |
-
## File-based project format
|
8 |
-
*.ipr
|
9 |
-
*.iws
|
10 |
-
|
11 |
-
## Additional for IntelliJ
|
12 |
-
out/
|
13 |
-
|
14 |
-
# generated by mpeltonen/sbt-idea plugin
|
15 |
-
.idea_modules/
|
16 |
-
|
17 |
-
# generated by JIRA plugin
|
18 |
-
atlassian-ide-plugin.xml
|
19 |
-
|
20 |
-
### Composer template
|
21 |
-
composer.lock
|
22 |
-
composer.phar
|
23 |
-
vendor/
|
24 |
-
|
25 |
-
devFile.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/defuse/php-encryption/.gitignore
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
*~
|
2 |
-
/test/unit/File/big-generated-file
|
3 |
-
/composer.lock
|
4 |
-
/vendor
|
5 |
-
defuse-crypto.phar
|
6 |
-
defuse-crypto.phar.sig
|
7 |
-
composer.phar
|
8 |
-
box.phar
|
9 |
-
phpunit.phar
|
10 |
-
phpunit.phar.asc
|
11 |
-
test/unit/File/tmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/recaptcha/.gitignore
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
/.php_cs.cache
|
2 |
-
/.phpunit.result.cache
|
3 |
-
/build
|
4 |
-
/composer.lock
|
5 |
-
/examples/config.php
|
6 |
-
/nbproject/private/
|
7 |
-
/vendor/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/guzzlehttp/ringphp/.gitignore
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
vendor
|
2 |
-
build/artifacts/
|
3 |
-
composer.lock
|
4 |
-
docs/_build/
|
|
|
|
|
|
|
|
vendor/guzzlehttp/streams/.gitignore
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
.idea
|
2 |
-
.DS_STORE
|
3 |
-
coverage
|
4 |
-
phpunit.xml
|
5 |
-
composer.lock
|
6 |
-
vendor/
|
|
|
|
|
|
|
|
|
|
|
|
vendor/psr/log/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
vendor
|
|
vendor/react/promise/.gitignore
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
composer.lock
|
2 |
-
composer.phar
|
3 |
-
phpunit.xml
|
4 |
-
build/
|
5 |
-
vendor/
|
|
|
|
|
|
|
|
|
|