Constant Contact Forms - Version 1.6.1

Version Description

  • Fixed: Issue with selecting forms in the widget.
  • Fixed: Compatibility with other page builders and our Gutenberg integration.
  • Updated: Revised wording and links for admin notice about potential issues.
Download this release

Release Info

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

Code changes from version 1.6.0 to 1.6.1

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.6.0
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.6.0';
76
 
77
  /**
78
  * 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.6.1
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.6.1';
76
 
77
  /**
78
  * URL of plugin directory.
includes/class-admin.php CHANGED
@@ -493,8 +493,12 @@ class ConstantContact_Admin {
493
  wp_enqueue_script( 'ctct_form' );
494
  }
495
 
 
 
 
496
  /**
497
  * Filters the allowed pages to enqueue the ctct_form script on.
 
498
  * @since 1.0.0
499
  *
500
  * @param array $value Array of WP Admin base files to conditionally load on.
@@ -502,7 +506,9 @@ class ConstantContact_Admin {
502
  $allowed_pages = apply_filters( 'constant_contact_script_load_pages', [ 'post.php', 'post-new.php' ] );
503
  if ( $pagenow && in_array( $pagenow, $allowed_pages, true ) && ! constant_contact()->is_constant_contact() ) {
504
  wp_enqueue_script( 'ctct_form' );
505
- wp_enqueue_script( 'ctct_gutenberg' );
 
 
506
  }
507
 
508
  if ( ! is_array( $extra_localizations ) ) {
493
  wp_enqueue_script( 'ctct_form' );
494
  }
495
 
496
+ $current_screen = get_current_screen();
497
+ $is_gutenberg = is_object( $current_screen ) ? $current_screen->is_block_editor : true;
498
+
499
  /**
500
  * Filters the allowed pages to enqueue the ctct_form script on.
501
+ *
502
  * @since 1.0.0
503
  *
504
  * @param array $value Array of WP Admin base files to conditionally load on.
506
  $allowed_pages = apply_filters( 'constant_contact_script_load_pages', [ 'post.php', 'post-new.php' ] );
507
  if ( $pagenow && in_array( $pagenow, $allowed_pages, true ) && ! constant_contact()->is_constant_contact() ) {
508
  wp_enqueue_script( 'ctct_form' );
509
+ if ( $is_gutenberg ) {
510
+ wp_enqueue_script( 'ctct_gutenberg' );
511
+ }
512
  }
513
 
514
  if ( ! is_array( $extra_localizations ) ) {
includes/class-notification-content.php CHANGED
@@ -179,10 +179,10 @@ class ConstantContact_Notification_Content {
179
  public static function exceptions() {
180
  return sprintf(
181
  /* Translators: placeholders will be html `<a>` links. */
182
- esc_html__( 'Constant Contact Forms has experienced issues that need addressed. Functionality may be missing. Please enable the "Support" checkbox in the %1$sConstant Contact settings%2$s and start a %3$sforum support thread%4$s. Our support team will aid with further steps.', 'constant-contact-forms' ),
183
  sprintf( '<a href="%s">', esc_url( admin_url( 'edit.php?post_type=ctct_forms&page=ctct_options_settings' ) ) ),
184
  '</a>',
185
- sprintf( '<a href="%s" target="_blank">', esc_url( 'https://wordpress.org/support/plugin/constant-contact-forms/' ) ),
186
  '</a>'
187
  );
188
  }
179
  public static function exceptions() {
180
  return sprintf(
181
  /* Translators: placeholders will be html `<a>` links. */
182
+ esc_html__( 'Constant Contact Forms has experienced issues that may need addressed and functionality may be missing. Please enable the "Support" checkbox in the %1$sConstant Contact settings%2$s and start a %3$sforum support thread%4$s. Our support team will aid with further steps.', 'constant-contact-forms' ),
183
  sprintf( '<a href="%s">', esc_url( admin_url( 'edit.php?post_type=ctct_forms&page=ctct_options_settings' ) ) ),
184
  '</a>',
185
+ sprintf( '<a href="%s" target="_blank">', esc_url( 'https://wordpress.org/support/topic/constant-contact-forms-has-experienced-issues-that-need-addressed-admin-notice/ ' ) ),
186
  '</a>'
187
  );
188
  }
includes/widgets/contact-form-select.php CHANGED
@@ -232,9 +232,9 @@ class ConstantContactWidget extends WP_Widget {
232
  foreach ( $option as $key => $title ) {
233
  $selects .= sprintf(
234
  '<option value="%s" %s>%s</option>',
235
- $key,
236
  selected( $value, $key, false ),
237
- $title
238
  );
239
  }
240
  }
@@ -244,7 +244,7 @@ class ConstantContactWidget extends WP_Widget {
244
  esc_html( $label_text ),
245
  esc_attr( $name ),
246
  esc_attr( $id ),
247
- esc_html( $selects )
248
  );
249
  }
250
  }
232
  foreach ( $option as $key => $title ) {
233
  $selects .= sprintf(
234
  '<option value="%s" %s>%s</option>',
235
+ esc_attr( $key ),
236
  selected( $value, $key, false ),
237
+ esc_html( $title )
238
  );
239
  }
240
  }
244
  esc_html( $label_text ),
245
  esc_attr( $name ),
246
  esc_attr( $id ),
247
+ $selects
248
  );
249
  }
250
  }
languages/constant-contact-forms.pot CHANGED
@@ -3,8 +3,8 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Constant Contact Forms for WordPress\n"
6
- "POT-Creation-Date: 2019-08-27 20:52-0500\n"
7
- "PO-Revision-Date: 2019-04-02 23:42-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -19,10 +19,11 @@ msgstr ""
19
  "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20
  "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
- "X-Poedit-SearchPathExcluded-0: *.js\n"
23
- "X-Poedit-SearchPathExcluded-1: tests\n"
24
- "X-Poedit-SearchPathExcluded-2: vendor\n"
25
- "X-Poedit-SearchPathExcluded-3: node_modules\n"
 
26
 
27
  #. Author of the plugin/theme
28
  #: constant-contact-forms.php:373 includes/class-cpts.php:89
@@ -1512,8 +1513,8 @@ msgstr ""
1512
  #: includes/class-notification-content.php:182
1513
  #, php-format
1514
  msgid ""
1515
- "Constant Contact Forms has experienced issues that need addressed. "
1516
- "Functionality may be missing. Please enable the \"Support\" checkbox in the "
1517
  "%1$sConstant Contact settings%2$s and start a %3$sforum support thread%4$s. "
1518
  "Our support team will aid with further steps."
1519
  msgstr ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Constant Contact Forms for WordPress\n"
6
+ "POT-Creation-Date: 2019-09-10 10:48-0500\n"
7
+ "PO-Revision-Date: 2019-09-10 10:47-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
19
  "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20
  "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
+ "X-Poedit-SearchPathExcluded-0: *.min.js\n"
23
+ "X-Poedit-SearchPathExcluded-1: vendor\n"
24
+ "X-Poedit-SearchPathExcluded-2: node_modules\n"
25
+ "X-Poedit-SearchPathExcluded-3: tests\n"
26
+ "X-Poedit-SearchPathExcluded-4: assets\n"
27
 
28
  #. Author of the plugin/theme
29
  #: constant-contact-forms.php:373 includes/class-cpts.php:89
1513
  #: includes/class-notification-content.php:182
1514
  #, php-format
1515
  msgid ""
1516
+ "Constant Contact Forms has experienced issues that may need addressed and "
1517
+ "functionality may be missing. Please enable the \"Support\" checkbox in the "
1518
  "%1$sConstant Contact settings%2$s and start a %3$sforum support thread%4$s. "
1519
  "Our support team will aid with further steps."
1520
  msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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: 5.2.0
5
- Tested up to: 5.2.2
6
- Stable tag: 1.6.0
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
  Requires PHP: 5.6
@@ -35,6 +35,11 @@ BONUS: If you have a Constant Contact account, all new email addresses that you
35
 
36
  == Changelog ==
37
 
 
 
 
 
 
38
  = 1.6.0 =
39
  * Addded: Uninstall routine to remove various options saved from use of the plugin, when uninstalling.
40
  * Updated: Improved handling of potential fatal errors that caused sites to become unusable.
2
  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: 5.2.0
5
+ Tested up to: 5.2.3
6
+ Stable tag: 1.6.1
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.6.1 =
39
+ * Fixed: Issue with selecting forms in the widget.
40
+ * Fixed: Compatibility with other page builders and our Gutenberg integration.
41
+ * Updated: Revised wording and links for admin notice about potential issues.
42
+
43
  = 1.6.0 =
44
  * Addded: Uninstall routine to remove various options saved from use of the plugin, when uninstalling.
45
  * Updated: Improved handling of potential fatal errors that caused sites to become unusable.