Constant Contact Forms - Version 1.2.3

Version Description

  • Fixed: Attempt to process forms that have provided a custom url via filter.
  • Fixed: Clean up class attributes regarding validation errors in text inputs.
Download this release

Release Info

Developer constantcontact
Plugin Icon 128x128 Constant Contact Forms
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

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.2.2
16
  * Author: Constant Contact
17
  * Author URI: https://www.constantcontact.com
18
  * License: GPLv3
@@ -77,7 +77,7 @@ class Constant_Contact {
77
  * @var string
78
  * @since 1.0.0
79
  */
80
- const VERSION = '1.2.2';
81
 
82
  /**
83
  * URL of plugin directory
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.2.3
16
  * Author: Constant Contact
17
  * Author URI: https://www.constantcontact.com
18
  * License: GPLv3
77
  * @var string
78
  * @since 1.0.0
79
  */
80
+ const VERSION = '1.2.3';
81
 
82
  /**
83
  * URL of plugin directory
includes/class-display.php CHANGED
@@ -673,8 +673,8 @@ class ConstantContact_Display {
673
 
674
  // If we have an error.
675
  if ( $field_error ) {
676
- // Tack that sucker on to the end of our input.
677
- $classes[] = 'class="ctct-invalid"';
678
  }
679
 
680
  // Append classes to our field.
673
 
674
  // If we have an error.
675
  if ( $field_error ) {
676
+ // Tack an error class on to the end of our classes.
677
+ $classes[] = 'ctct-invalid';
678
  }
679
 
680
  // Append classes to our field.
includes/helper-functions.php CHANGED
@@ -238,5 +238,19 @@ function constant_contact_review_ajax_handler() {
238
  wp_send_json_success( array( 'review-action' => 'processed' ) );
239
  exit();
240
  }
241
-
242
  add_action( 'wp_ajax_constant_contact_review_ajax_handler', 'constant_contact_review_ajax_handler' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  wp_send_json_success( array( 'review-action' => 'processed' ) );
239
  exit();
240
  }
 
241
  add_action( 'wp_ajax_constant_contact_review_ajax_handler', 'constant_contact_review_ajax_handler' );
242
+
243
+ /**
244
+ * Process potential custom Constant Contact Forms action urls.
245
+ *
246
+ * @since 1.2.3
247
+ */
248
+ function ctct_custom_form_action_processing() {
249
+ // Only run this if we have a custom action being filtered in.
250
+ if ( ! has_filter( 'constant_contact_front_form_action' ) ) {
251
+ return;
252
+ }
253
+
254
+ return constant_contact()->process_form->process_form();
255
+ }
256
+ add_action( 'wp_head', 'ctct_custom_form_action_processing' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: constantcontact
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: 4.0.0
5
  Tested up to: 4.7.2
6
- Stable tag: 1.2.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -33,6 +33,10 @@ BONUS: If you have a Constant Contact account, all new email addresses that you
33
 
34
  == Changelog ==
35
 
 
 
 
 
36
  = 1.2.2 =
37
  * Fixed: Conflicts with other plugins using the Constant Contact PHP SDK.
38
  * Fixed: Added honeypot-style spam prevention on forms.
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: 4.0.0
5
  Tested up to: 4.7.2
6
+ Stable tag: 1.2.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
33
 
34
  == Changelog ==
35
 
36
+ = 1.2.3 =
37
+ * Fixed: Attempt to process forms that have provided a custom url via filter.
38
+ * Fixed: Clean up class attributes regarding validation errors in text inputs.
39
+
40
  = 1.2.2 =
41
  * Fixed: Conflicts with other plugins using the Constant Contact PHP SDK.
42
  * Fixed: Added honeypot-style spam prevention on forms.