Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms - Version 1.9.3

Version Description

  • Bugfix: Choices marked checked as default were displaying checked HTML attribute on front-end.
Download this release

Release Info

Developer thethemefoundry
Plugin Icon 128x128 Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

core/assets/js/{tracking.js → welcome.js} RENAMED
@@ -15,8 +15,8 @@
15
 
16
  var $this = $( this );
17
 
18
- $.getJSON(
19
- $this.attr( 'action' ) + '?callback=?',
20
  $this.serialize(),
21
 
22
  function( data ) {
15
 
16
  var $this = $( this );
17
 
18
+ $.post(
19
+ $this.attr( 'action' ),
20
  $this.serialize(),
21
 
22
  function( data ) {
core/classes/class-tracking.php CHANGED
@@ -27,7 +27,7 @@ class HappyForms_Tracking {
27
  *
28
  * @var string
29
  */
30
- public $monitor_action = 'https://thethemefoundry.createsend.com/t/r/s/uhlrkll/';
31
 
32
  /**
33
  * The name of the email field in the welcome form.
@@ -36,7 +36,7 @@ class HappyForms_Tracking {
36
  *
37
  * @var string
38
  */
39
- public $monitor_email_field = 'cm-uhlrkll-uhlrkll';
40
 
41
  /**
42
  * The name of the status field in the welcome form.
@@ -186,7 +186,7 @@ class HappyForms_Tracking {
186
  if ( 'happyforms_page_happyforms-welcome' === $current_screen->id ) {
187
  wp_enqueue_script(
188
  'happyforms-tracking',
189
- happyforms_get_plugin_url() . 'core/assets/js/tracking.js',
190
  array(), HAPPYFORMS_VERSION, true
191
  );
192
  }
27
  *
28
  * @var string
29
  */
30
+ public $monitor_action = 'https://emailoctopus.com/lists/a58bf658-425e-11ea-be00-06b4694bee2a/members/embedded/1.3/add';
31
 
32
  /**
33
  * The name of the email field in the welcome form.
36
  *
37
  * @var string
38
  */
39
+ public $monitor_email_field = 'field_0';
40
 
41
  /**
42
  * The name of the status field in the welcome form.
186
  if ( 'happyforms_page_happyforms-welcome' === $current_screen->id ) {
187
  wp_enqueue_script(
188
  'happyforms-tracking',
189
+ happyforms_get_plugin_url() . 'core/assets/js/welcome.js',
190
  array(), HAPPYFORMS_VERSION, true
191
  );
192
  }
core/helpers/helper-activation.php CHANGED
@@ -161,21 +161,4 @@ function happyforms_create_samples() {
161
 
162
  endif;
163
 
164
- function happyforms_deactivate_tracking() {
165
- require_once( happyforms_get_core_folder() . '/classes/class-tracking.php' );
166
-
167
- $tracking = happyforms_get_tracking();
168
- $status = $tracking->get_status();
169
-
170
- if ( ! empty( $status['email'] ) ) {
171
- wp_remote_post( $tracking->monitor_action , array(
172
- 'body' => array(
173
- $tracking->monitor_email_field => $status['email'],
174
- $tracking->monitor_status_field => 'inactive',
175
- )
176
- ) );
177
- }
178
- }
179
-
180
  add_action( 'happyforms_activate', 'happyforms_create_samples' );
181
- add_action( 'happyforms_deactivate', 'happyforms_deactivate_tracking' );
161
 
162
  endif;
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  add_action( 'happyforms_activate', 'happyforms_create_samples' );
 
core/templates/admin-tracking.php CHANGED
@@ -13,7 +13,6 @@ $status = $tracking->get_status();
13
  <p class="description"><?php _e( 'Let\'s set up HappyForms! Enter your email below to agree to notification and to share some data about your usage with', HAPPYFORMS_TEXT_DOMAIN ); ?> <a href="https://thethemefoundry.com" target="_blank">thethemefoundry.com</a>.</p>
14
  <form action="<?php echo esc_attr( $tracking->monitor_action ); ?>" method="post" id="happyforms-tracking">
15
  <input name="<?php echo esc_attr( $tracking->monitor_email_field ); ?>" type="email" placeholder="<?php _e( 'Email address', HAPPYFORMS_TEXT_DOMAIN ); ?>" required >
16
- <input name="<?php echo esc_attr( $tracking->monitor_status_field ); ?>" type="hidden" value="active" />
17
  <button type="submit" class="button button-primary button-hero button-block"><?php _e( 'Allow and set up HappyForms', HAPPYFORMS_TEXT_DOMAIN ); ?></button>
18
  </form>
19
  <?php } ?>
13
  <p class="description"><?php _e( 'Let\'s set up HappyForms! Enter your email below to agree to notification and to share some data about your usage with', HAPPYFORMS_TEXT_DOMAIN ); ?> <a href="https://thethemefoundry.com" target="_blank">thethemefoundry.com</a>.</p>
14
  <form action="<?php echo esc_attr( $tracking->monitor_action ); ?>" method="post" id="happyforms-tracking">
15
  <input name="<?php echo esc_attr( $tracking->monitor_email_field ); ?>" type="email" placeholder="<?php _e( 'Email address', HAPPYFORMS_TEXT_DOMAIN ); ?>" required >
 
16
  <button type="submit" class="button button-primary button-hero button-block"><?php _e( 'Allow and set up HappyForms', HAPPYFORMS_TEXT_DOMAIN ); ?></button>
17
  </form>
18
  <?php } ?>
core/templates/parts/frontend-checkbox.php CHANGED
@@ -25,7 +25,7 @@
25
  $checked = in_array( $o, $value ) ? 'checked="checked"' : '';
26
 
27
  if ( empty( $checked ) ) {
28
- $checked = checked( 1, $option['is_default'] );
29
  }
30
  ?>
31
  <label class="option-label">
25
  $checked = in_array( $o, $value ) ? 'checked="checked"' : '';
26
 
27
  if ( empty( $checked ) ) {
28
+ $checked = checked( 1, $option['is_default'], false );
29
  }
30
  ?>
31
  <label class="option-label">
core/templates/parts/frontend-radio.php CHANGED
@@ -18,7 +18,7 @@
18
  }
19
 
20
  if ( ! $checked ) {
21
- $checked = checked( 1, $option['is_default'] );
22
  }
23
  ?>
24
  <div class="happyforms-part__option happyforms-part-option" id="<?php echo esc_attr( $option['id'] ); ?>">
18
  }
19
 
20
  if ( ! $checked ) {
21
+ $checked = checked( 1, $option['is_default'], false );
22
  }
23
  ?>
24
  <div class="happyforms-part__option happyforms-part-option" id="<?php echo esc_attr( $option['id'] ); ?>">
happyforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: The Theme Foundry
8
- * Version: 1.9.2
9
  * Author URI: https://thethemefoundry.com
10
  * Upgrade URI: https://thethemefoundry.com
11
  */
@@ -13,7 +13,7 @@
13
  /**
14
  * The current version of the plugin.
15
  */
16
- define( 'HAPPYFORMS_VERSION', '1.9.2' );
17
  define( 'HAPPYFORMS_TEXT_DOMAIN', 'happyforms' );
18
 
19
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: The Theme Foundry
8
+ * Version: 1.9.3
9
  * Author URI: https://thethemefoundry.com
10
  * Upgrade URI: https://thethemefoundry.com
11
  */
13
  /**
14
  * The current version of the plugin.
15
  */
16
+ define( 'HAPPYFORMS_VERSION', '1.9.3' );
17
  define( 'HAPPYFORMS_TEXT_DOMAIN', 'happyforms' );
18
 
19
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
languages/happyforms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: HappyForms 1.9.2\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2020-01-22 12:52:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2814,15 +2814,15 @@ msgid ""
2814
  "and to share some data about your usage with"
2815
  msgstr ""
2816
 
2817
- #: core/templates/admin-tracking.php:17
2818
  msgid "Allow and set up HappyForms"
2819
  msgstr ""
2820
 
2821
- #: core/templates/admin-tracking.php:24
2822
  msgid "Or, skip this step and "
2823
  msgstr ""
2824
 
2825
- #: core/templates/admin-tracking.php:24
2826
  msgid "continue"
2827
  msgstr ""
2828
 
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.9.3\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2020-02-05 08:50:02+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2814
  "and to share some data about your usage with"
2815
  msgstr ""
2816
 
2817
+ #: core/templates/admin-tracking.php:16
2818
  msgid "Allow and set up HappyForms"
2819
  msgstr ""
2820
 
2821
+ #: core/templates/admin-tracking.php:23
2822
  msgid "Or, skip this step and "
2823
  msgstr ""
2824
 
2825
+ #: core/templates/admin-tracking.php:23
2826
  msgid "continue"
2827
  msgstr ""
2828
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: contact, contact form, email, feedback form, form, form builder, custom fo
5
  Requires at least: 4.8
6
  Tested up to: 5.3
7
  Requires PHP: 5.3
8
- Stable tag: 1.9.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -97,6 +97,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 1.9.2 =
101
  * New feature: Additional CSS section in Style tab allowing to write custom styles for each individual form.
102
 
@@ -568,6 +571,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
568
 
569
  == Upgrade Notice ==
570
 
 
 
 
571
  = 1.9.2 =
572
  * New Additional CSS section in Style step.
573
 
5
  Requires at least: 4.8
6
  Tested up to: 5.3
7
  Requires PHP: 5.3
8
+ Stable tag: 1.9.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.9.3 =
101
+ * Bugfix: Choices marked checked as default were displaying checked HTML attribute on front-end.
102
+
103
  = 1.9.2 =
104
  * New feature: Additional CSS section in Style tab allowing to write custom styles for each individual form.
105
 
571
 
572
  == Upgrade Notice ==
573
 
574
+ = 1.9.3 =
575
+ * Fix issue with HTML attribute visible between form parts.
576
+
577
  = 1.9.2 =
578
  * New Additional CSS section in Style step.
579