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

Version Description

  • Bug fix: Phone number region country in masked Phone part was defaulting to first option on every load of form builder.
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.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

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.1
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.1' );
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.2
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.2' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
inc/classes/parts/class-part-phone.php CHANGED
@@ -60,7 +60,7 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
60
  'sanitize' => 'intval'
61
  ),
62
  'mask_phone_country' => array(
63
- 'default' => '',
64
  'sanitize' => 'intval'
65
  ),
66
  'confirmation_field' => array(
@@ -151,7 +151,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
151
  'BY' => array( 'name' => 'BELARUS', 'code' => '375' ),
152
  'BZ' => array( 'name' => 'BELIZE', 'code' => '501' ),
153
  'CA' => array( 'name' => 'CANADA', 'code' => '1' ),
154
- 'CC' => array( 'name' => 'COCOS (KEELING) ISLANDS', 'code' => '61' ),
155
  'CD' => array( 'name' => 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'code' => '243' ),
156
  'CF' => array( 'name' => 'CENTRAL AFRICAN REPUBLIC', 'code' => '236' ),
157
  'CG' => array( 'name' => 'CONGO', 'code' => '242' ),
@@ -208,7 +207,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
208
  'ID' => array( 'name' => 'INDONESIA', 'code' => '62' ),
209
  'IE' => array( 'name' => 'IRELAND', 'code' => '353' ),
210
  'IL' => array( 'name' => 'ISRAEL', 'code' => '972' ),
211
- 'IM' => array( 'name' => 'ISLE OF MAN', 'code' => '44' ),
212
  'IN' => array( 'name' => 'INDIA', 'code' => '91' ),
213
  'IQ' => array( 'name' => 'IRAQ', 'code' => '964' ),
214
  'IR' => array( 'name' => 'IRAN, ISLAMIC REPUBLIC OF', 'code' => '98' ),
@@ -227,7 +225,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
227
  'KR' => array( 'name' => 'KOREA REPUBLIC OF', 'code' => '82' ),
228
  'KW' => array( 'name' => 'KUWAIT', 'code' => '965' ),
229
  'KY' => array( 'name' => 'CAYMAN ISLANDS', 'code' => '1345' ),
230
- 'KZ' => array( 'name' => 'KAZAKSTAN', 'code' => '7' ),
231
  'LA' => array( 'name' => 'LAO PEOPLES DEMOCRATIC REPUBLIC', 'code' => '856' ),
232
  'LB' => array( 'name' => 'LEBANON', 'code' => '961' ),
233
  'LC' => array( 'name' => 'SAINT LUCIA', 'code' => '1758' ),
@@ -282,7 +279,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
282
  'PL' => array( 'name' => 'POLAND', 'code' => '48' ),
283
  'PM' => array( 'name' => 'SAINT PIERRE AND MIQUELON', 'code' => '508' ),
284
  'PN' => array( 'name' => 'PITCAIRN', 'code' => '870' ),
285
- 'PR' => array( 'name' => 'PUERTO RICO', 'code' => '1' ),
286
  'PT' => array( 'name' => 'PORTUGAL', 'code' => '351' ),
287
  'PW' => array( 'name' => 'PALAU', 'code' => '680' ),
288
  'PY' => array( 'name' => 'PARAGUAY', 'code' => '595' ),
@@ -329,7 +325,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
329
  'US' => array( 'name' => 'UNITED STATES', 'code' => '1' ),
330
  'UY' => array( 'name' => 'URUGUAY', 'code' => '598' ),
331
  'UZ' => array( 'name' => 'UZBEKISTAN', 'code' => '998' ),
332
- 'VA' => array( 'name' => 'HOLY SEE (VATICAN CITY STATE)', 'code' => '39' ),
333
  'VC' => array( 'name' => 'SAINT VINCENT AND THE GRENADINES', 'code' => '1784' ),
334
  'VE' => array( 'name' => 'VENEZUELA', 'code' => '58' ),
335
  'VG' => array( 'name' => 'VIRGIN ISLANDS, BRITISH', 'code' => '1284' ),
@@ -338,7 +333,6 @@ class HappyForms_Part_Phone extends HappyForms_Form_Part {
338
  'VU' => array( 'name' => 'VANUATU', 'code' => '678' ),
339
  'WF' => array( 'name' => 'WALLIS AND FUTUNA', 'code' => '681' ),
340
  'WS' => array( 'name' => 'SAMOA', 'code' => '685' ),
341
- 'XK' => array( 'name' => 'KOSOVO', 'code' => '381' ),
342
  'YE' => array( 'name' => 'YEMEN', 'code' => '967' ),
343
  'YT' => array( 'name' => 'MAYOTTE', 'code' => '262' ),
344
  'ZA' => array( 'name' => 'SOUTH AFRICA', 'code' => '27' ),
60
  'sanitize' => 'intval'
61
  ),
62
  'mask_phone_country' => array(
63
+ 'default' => 1,
64
  'sanitize' => 'intval'
65
  ),
66
  'confirmation_field' => array(
151
  'BY' => array( 'name' => 'BELARUS', 'code' => '375' ),
152
  'BZ' => array( 'name' => 'BELIZE', 'code' => '501' ),
153
  'CA' => array( 'name' => 'CANADA', 'code' => '1' ),
 
154
  'CD' => array( 'name' => 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'code' => '243' ),
155
  'CF' => array( 'name' => 'CENTRAL AFRICAN REPUBLIC', 'code' => '236' ),
156
  'CG' => array( 'name' => 'CONGO', 'code' => '242' ),
207
  'ID' => array( 'name' => 'INDONESIA', 'code' => '62' ),
208
  'IE' => array( 'name' => 'IRELAND', 'code' => '353' ),
209
  'IL' => array( 'name' => 'ISRAEL', 'code' => '972' ),
 
210
  'IN' => array( 'name' => 'INDIA', 'code' => '91' ),
211
  'IQ' => array( 'name' => 'IRAQ', 'code' => '964' ),
212
  'IR' => array( 'name' => 'IRAN, ISLAMIC REPUBLIC OF', 'code' => '98' ),
225
  'KR' => array( 'name' => 'KOREA REPUBLIC OF', 'code' => '82' ),
226
  'KW' => array( 'name' => 'KUWAIT', 'code' => '965' ),
227
  'KY' => array( 'name' => 'CAYMAN ISLANDS', 'code' => '1345' ),
 
228
  'LA' => array( 'name' => 'LAO PEOPLES DEMOCRATIC REPUBLIC', 'code' => '856' ),
229
  'LB' => array( 'name' => 'LEBANON', 'code' => '961' ),
230
  'LC' => array( 'name' => 'SAINT LUCIA', 'code' => '1758' ),
279
  'PL' => array( 'name' => 'POLAND', 'code' => '48' ),
280
  'PM' => array( 'name' => 'SAINT PIERRE AND MIQUELON', 'code' => '508' ),
281
  'PN' => array( 'name' => 'PITCAIRN', 'code' => '870' ),
 
282
  'PT' => array( 'name' => 'PORTUGAL', 'code' => '351' ),
283
  'PW' => array( 'name' => 'PALAU', 'code' => '680' ),
284
  'PY' => array( 'name' => 'PARAGUAY', 'code' => '595' ),
325
  'US' => array( 'name' => 'UNITED STATES', 'code' => '1' ),
326
  'UY' => array( 'name' => 'URUGUAY', 'code' => '598' ),
327
  'UZ' => array( 'name' => 'UZBEKISTAN', 'code' => '998' ),
 
328
  'VC' => array( 'name' => 'SAINT VINCENT AND THE GRENADINES', 'code' => '1784' ),
329
  'VE' => array( 'name' => 'VENEZUELA', 'code' => '58' ),
330
  'VG' => array( 'name' => 'VIRGIN ISLANDS, BRITISH', 'code' => '1284' ),
333
  'VU' => array( 'name' => 'VANUATU', 'code' => '678' ),
334
  'WF' => array( 'name' => 'WALLIS AND FUTUNA', 'code' => '681' ),
335
  'WS' => array( 'name' => 'SAMOA', 'code' => '685' ),
 
336
  'YE' => array( 'name' => 'YEMEN', 'code' => '967' ),
337
  'YT' => array( 'name' => 'MAYOTTE', 'code' => '262' ),
338
  'ZA' => array( 'name' => 'SOUTH AFRICA', 'code' => '27' ),
inc/templates/parts/customize-phone.php CHANGED
@@ -51,7 +51,7 @@
51
  $phone_countries = $this->get_phone_countries_array();
52
 
53
  foreach ( $phone_countries as $country_code => $country ) : ?>
54
- <option value="<?php echo esc_attr( $country['code'] ); ?>"<% if (instance.mask_phone_country == "'. $country['code'] .'") { %> selected<% } %>><?php echo ucwords( strtolower( $country['name'] ) ); ?></option>
55
  <?php endforeach; ?>
56
  </select>
57
  </p>
51
  $phone_countries = $this->get_phone_countries_array();
52
 
53
  foreach ( $phone_countries as $country_code => $country ) : ?>
54
+ <option value="<?php echo esc_attr( $country['code'] ); ?>"<% if (instance.mask_phone_country == <?php echo $country['code']; ?>) { %> selected<% } %>><?php echo ucwords( strtolower( $country['name'] ) ); ?></option>
55
  <?php endforeach; ?>
56
  </select>
57
  </p>
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.1\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2018-07-10 11:45: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"
@@ -879,8 +879,8 @@ msgstr ""
879
  #: inc/classes/parts/class-part-multi-line-text.php:141
880
  #: inc/classes/parts/class-part-number.php:175
881
  #: inc/classes/parts/class-part-number.php:179
882
- #: inc/classes/parts/class-part-phone.php:404
883
- #: inc/classes/parts/class-part-phone.php:408
884
  #: inc/classes/parts/class-part-radio.php:165
885
  #: inc/classes/parts/class-part-rating.php:125
886
  #: inc/classes/parts/class-part-scale.php:163
@@ -999,7 +999,7 @@ msgid "Confirm Number"
999
  msgstr ""
1000
 
1001
  #: inc/classes/parts/class-part-number.php:183
1002
- #: inc/classes/parts/class-part-phone.php:412
1003
  msgid "Number and confirmation number are not matching."
1004
  msgstr ""
1005
 
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.5.2\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2018-07-11 07:58:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
879
  #: inc/classes/parts/class-part-multi-line-text.php:141
880
  #: inc/classes/parts/class-part-number.php:175
881
  #: inc/classes/parts/class-part-number.php:179
882
+ #: inc/classes/parts/class-part-phone.php:398
883
+ #: inc/classes/parts/class-part-phone.php:402
884
  #: inc/classes/parts/class-part-radio.php:165
885
  #: inc/classes/parts/class-part-rating.php:125
886
  #: inc/classes/parts/class-part-scale.php:163
999
  msgstr ""
1000
 
1001
  #: inc/classes/parts/class-part-number.php:183
1002
+ #: inc/classes/parts/class-part-phone.php:406
1003
  msgid "Number and confirmation number are not matching."
1004
  msgstr ""
1005
 
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.1
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.1 =
79
  * New feature: Table part.
80
  * Improvement: Legal part now accepts formatting with visual editor, including links and lists.
@@ -176,6 +179,9 @@ Absolutely! HappyForms gets out of the way and is designed to work with any them
176
 
177
  == Upgrade Notice ==
178
 
 
 
 
179
  = 1.5.1 =
180
  * Added Table part. Legal part now allows for links and basic formatting. Various improvements and bug fixes.
181
 
5
  Requires at least: 4.8
6
  Tested up to: 4.9.7
7
  Requires PHP: 5.2.4
8
+ Stable tag: 1.5.2
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.2 =
79
+ * Bug fix: Phone number region country in masked Phone part was defaulting to first option on every load of form builder.
80
+
81
  = 1.5.1 =
82
  * New feature: Table part.
83
  * Improvement: Legal part now accepts formatting with visual editor, including links and lists.
179
 
180
  == Upgrade Notice ==
181
 
182
+ = 1.5.2 =
183
+ * Fixed masked Phone part region country defaulting to first option on every load of form builder.
184
+
185
  = 1.5.1 =
186
  * Added Table part. Legal part now allows for links and basic formatting. Various improvements and bug fixes.
187