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

Version Description

  • Bugfix: a missing parameter was causing an error upon activation.
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.5.7
Comparing to
See all releases

Code changes from version 1.5.6 to 1.5.7

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.5.6
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.5.6' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
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.5.7
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.5.7' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
inc/helpers/helper-activation.php CHANGED
@@ -132,10 +132,8 @@ function happyforms_first_run() {
132
  )
133
  );
134
 
135
- $_REQUEST['happyforms_form_id'] = $form_data['ID'];
136
-
137
  foreach ( $messages_data as $message_data ) {
138
- $request = array();
139
 
140
  foreach ( $message_data as $label => $value ) {
141
  foreach ( $form_data['parts'] as $part ) {
@@ -146,22 +144,17 @@ function happyforms_first_run() {
146
  $value = array( $part['options'][$value]['label'] );
147
  }
148
 
149
- $_REQUEST[$part_id] = $value;
150
- $request[$part_id] = $value;
151
 
152
  break;
153
  }
154
  }
155
  }
156
 
157
- $message = $message_controller->create( $form_data );
158
-
159
- foreach( $request as $field => $value ) {
160
- unset( $_REQUEST[$field] );
161
- }
162
  }
163
 
164
- unset( $_REQUEST['happyforms_form_id'] );
165
 
166
  // Store an option to avoid creating new forms on reactivation
167
  $tracking->update_status( 1 );
132
  )
133
  );
134
 
 
 
135
  foreach ( $messages_data as $message_data ) {
136
+ $submission = array();
137
 
138
  foreach ( $message_data as $label => $value ) {
139
  foreach ( $form_data['parts'] as $part ) {
144
  $value = array( $part['options'][$value]['label'] );
145
  }
146
 
147
+ $submission[$part_id] = $value;
 
148
 
149
  break;
150
  }
151
  }
152
  }
153
 
154
+ $message_controller->create( $form_data, $submission );
 
 
 
 
155
  }
156
 
157
+ $message_controller->update_badge_transient();
158
 
159
  // Store an option to avoid creating new forms on reactivation
160
  $tracking->update_status( 1 );
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.5.6\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2018-08-14 15:34:59+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.5.7\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2018-08-15 06:20:20+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
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: 4.9.7
7
  Requires PHP: 5.2.4
8
- Stable tag: 1.5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -75,6 +75,9 @@ Absolutely! HappyForms gets out of the way and is designed to work with any them
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 1.5.6 =
79
  * New feature: Forms can now show an additional Review step before final submission.
80
  * Improvement: Previous / Next buttons in form builder got more descriptive labels.
@@ -209,6 +212,9 @@ Absolutely! HappyForms gets out of the way and is designed to work with any them
209
 
210
  == Upgrade Notice ==
211
 
 
 
 
212
  = 1.5.6 =
213
  * Form previews, Customize improvements and bugfixes.
214
 
5
  Requires at least: 4.8
6
  Tested up to: 4.9.7
7
  Requires PHP: 5.2.4
8
+ Stable tag: 1.5.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.5.7 =
79
+ * Bugfix: a missing parameter was causing an error upon activation.
80
+
81
  = 1.5.6 =
82
  * New feature: Forms can now show an additional Review step before final submission.
83
  * Improvement: Previous / Next buttons in form builder got more descriptive labels.
212
 
213
  == Upgrade Notice ==
214
 
215
+ = 1.5.7 =
216
+ * Bugfixes.
217
+
218
  = 1.5.6 =
219
  * Form previews, Customize improvements and bugfixes.
220