Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.6.7.3

Version Description

  • Changed: Renamed a misspelled wpforms_display_sumbit_spinner_src filter to wpforms_display_submit_spinner_src, old name is now deprecated.
  • Fixed: Expired transients are not deleted automatically.
  • Fixed: Entries count race condition under high load in the plugin Lite version.
  • Fixed: Form Builder product education links.
Download this release

Release Info

Developer slaFFik
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.6.7.3
Comparing to
See all releases

Code changes from version 1.6.7.2 to 1.6.7.3

assets/languages/wpforms-lite.pot CHANGED
@@ -1,13 +1,13 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WPForms Lite 1.6.7.2\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms-lite\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2021-06-25T15:10:52+03:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.5.0\n"
13
  "X-Domain: wpforms-lite\n"
@@ -255,35 +255,35 @@ msgid "To edit the License Key, please first click the Deactivate Key button. Pl
255
  msgstr ""
256
 
257
  #. translators: %1$s - WPForms plugin name; %2$s - WPForms.com URL to a related doc.
258
- #: includes/admin/admin.php:387
259
  msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more</a> for additional information."
260
  msgstr ""
261
 
262
- #: includes/admin/admin.php:401
263
  msgid "<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WPForms functionality will be disabled."
264
  msgstr ""
265
 
266
  #. translators: %s - license level, WPForms Pro or WPForms Elite.
267
- #: includes/admin/admin.php:435
268
  msgid "Thanks for your interest in %s!"
269
  msgstr ""
270
 
271
  #. translators: %s - WPForms.com contact page URL.
272
- #: includes/admin/admin.php:441
273
  msgid "If you have any questions or issues just <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">let us know</a>."
274
  msgstr ""
275
 
276
  #. translators: %s - license level, WPForms Pro or WPForms Elite.
277
- #: includes/admin/admin.php:456
278
  msgid "After purchasing a license,<br>just <strong>enter your license key on the WPForms Settings page</strong>.<br>This will let your site automatically upgrade to %s!"
279
  msgstr ""
280
 
281
- #: includes/admin/admin.php:464
282
  msgid "(Don't worry, all your forms and settings will be preserved.)"
283
  msgstr ""
284
 
285
  #. translators: %s - WPForms.com upgrade from Lite to paid docs page URL.
286
- #: includes/admin/admin.php:469
287
  msgid "Check out <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">our documentation</a> for step-by-step instructions."
288
  msgstr ""
289
 
@@ -2109,7 +2109,7 @@ msgid "Required"
2109
  msgstr ""
2110
 
2111
  #: includes/admin/class-settings.php:388
2112
- #: includes/class-frontend.php:1508
2113
  #: includes/functions.php:1840
2114
  msgid "This field is required."
2115
  msgstr ""
@@ -2123,7 +2123,7 @@ msgid "Please enter a valid URL."
2123
  msgstr ""
2124
 
2125
  #: includes/admin/class-settings.php:400
2126
- #: includes/class-frontend.php:1509
2127
  msgid "Please enter a valid email address."
2128
  msgstr ""
2129
 
@@ -2132,7 +2132,7 @@ msgid "Email Suggestion"
2132
  msgstr ""
2133
 
2134
  #: includes/admin/class-settings.php:406
2135
- #: includes/class-frontend.php:1510
2136
  msgid "Did you mean {suggestion}?"
2137
  msgstr ""
2138
 
@@ -2141,7 +2141,7 @@ msgid "Email Restricted"
2141
  msgstr ""
2142
 
2143
  #: includes/admin/class-settings.php:412
2144
- #: includes/class-frontend.php:1512
2145
  #: includes/fields/class-email.php:549
2146
  #: includes/fields/class-email.php:560
2147
  msgid "This email address is not allowed."
@@ -2152,7 +2152,7 @@ msgid "Number"
2152
  msgstr ""
2153
 
2154
  #: includes/admin/class-settings.php:418
2155
- #: includes/class-frontend.php:1513
2156
  #: includes/fields/class-number.php:159
2157
  msgid "Please enter a valid number."
2158
  msgstr ""
@@ -2162,7 +2162,7 @@ msgid "Number Positive"
2162
  msgstr ""
2163
 
2164
  #: includes/admin/class-settings.php:424
2165
- #: includes/class-frontend.php:1514
2166
  msgid "Please enter a valid positive number."
2167
  msgstr ""
2168
 
@@ -2171,7 +2171,7 @@ msgid "Confirm Value"
2171
  msgstr ""
2172
 
2173
  #: includes/admin/class-settings.php:430
2174
- #: includes/class-frontend.php:1515
2175
  msgid "Field values do not match."
2176
  msgstr ""
2177
 
@@ -2180,7 +2180,7 @@ msgid "Input Mask Incomplete"
2180
  msgstr ""
2181
 
2182
  #: includes/admin/class-settings.php:436
2183
- #: includes/class-frontend.php:1520
2184
  msgid "Please fill out all blanks."
2185
  msgstr ""
2186
 
@@ -2189,7 +2189,7 @@ msgid "Checkbox Selection Limit"
2189
  msgstr ""
2190
 
2191
  #: includes/admin/class-settings.php:442
2192
- #: includes/class-frontend.php:1516
2193
  #: includes/fields/class-checkbox.php:589
2194
  msgid "You have exceeded the number of allowed selections: {#}."
2195
  msgstr ""
@@ -2671,29 +2671,29 @@ msgstr ""
2671
  msgid "%1$s is not supported by AMP and is currently disabled.<br><a href=\"%2$s\" rel=\"noopener noreferrer\" target=\"_blank\">Upgrade to reCAPTCHA v3</a> for full AMP support. <br><em>Please note: this message is only displayed to site administrators.</em>"
2672
  msgstr ""
2673
 
2674
- #: includes/class-frontend.php:1511
2675
  msgid "Click to accept this suggestion."
2676
  msgstr ""
2677
 
2678
- #: includes/class-frontend.php:1517
2679
  msgid "{count} of {limit} max characters."
2680
  msgstr ""
2681
 
2682
- #: includes/class-frontend.php:1518
2683
  msgid "{count} of {limit} max words."
2684
  msgstr ""
2685
 
2686
- #: includes/class-frontend.php:1519
2687
  #: src/Admin/Settings/Captcha.php:203
2688
  msgid "Google reCAPTCHA verification failed, please try again later."
2689
  msgstr ""
2690
 
2691
  #. translators: %s - URL to the troubleshooting guide.
2692
- #: includes/class-frontend.php:1745
2693
  msgid "Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected. See our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">troubleshooting guide</a> to learn more or contact support."
2694
  msgstr ""
2695
 
2696
- #: includes/class-frontend.php:1758
2697
  msgid "This message is only displayed to site administrators."
2698
  msgstr ""
2699
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WPForms Lite 1.6.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms-lite\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2021-07-02T12:56:57+03:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.5.0\n"
13
  "X-Domain: wpforms-lite\n"
255
  msgstr ""
256
 
257
  #. translators: %1$s - WPForms plugin name; %2$s - WPForms.com URL to a related doc.
258
+ #: includes/admin/admin.php:386
259
  msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more</a> for additional information."
260
  msgstr ""
261
 
262
+ #: includes/admin/admin.php:400
263
  msgid "<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WPForms functionality will be disabled."
264
  msgstr ""
265
 
266
  #. translators: %s - license level, WPForms Pro or WPForms Elite.
267
+ #: includes/admin/admin.php:434
268
  msgid "Thanks for your interest in %s!"
269
  msgstr ""
270
 
271
  #. translators: %s - WPForms.com contact page URL.
272
+ #: includes/admin/admin.php:440
273
  msgid "If you have any questions or issues just <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">let us know</a>."
274
  msgstr ""
275
 
276
  #. translators: %s - license level, WPForms Pro or WPForms Elite.
277
+ #: includes/admin/admin.php:455
278
  msgid "After purchasing a license,<br>just <strong>enter your license key on the WPForms Settings page</strong>.<br>This will let your site automatically upgrade to %s!"
279
  msgstr ""
280
 
281
+ #: includes/admin/admin.php:463
282
  msgid "(Don't worry, all your forms and settings will be preserved.)"
283
  msgstr ""
284
 
285
  #. translators: %s - WPForms.com upgrade from Lite to paid docs page URL.
286
+ #: includes/admin/admin.php:468
287
  msgid "Check out <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">our documentation</a> for step-by-step instructions."
288
  msgstr ""
289
 
2109
  msgstr ""
2110
 
2111
  #: includes/admin/class-settings.php:388
2112
+ #: includes/class-frontend.php:1536
2113
  #: includes/functions.php:1840
2114
  msgid "This field is required."
2115
  msgstr ""
2123
  msgstr ""
2124
 
2125
  #: includes/admin/class-settings.php:400
2126
+ #: includes/class-frontend.php:1537
2127
  msgid "Please enter a valid email address."
2128
  msgstr ""
2129
 
2132
  msgstr ""
2133
 
2134
  #: includes/admin/class-settings.php:406
2135
+ #: includes/class-frontend.php:1538
2136
  msgid "Did you mean {suggestion}?"
2137
  msgstr ""
2138
 
2141
  msgstr ""
2142
 
2143
  #: includes/admin/class-settings.php:412
2144
+ #: includes/class-frontend.php:1540
2145
  #: includes/fields/class-email.php:549
2146
  #: includes/fields/class-email.php:560
2147
  msgid "This email address is not allowed."
2152
  msgstr ""
2153
 
2154
  #: includes/admin/class-settings.php:418
2155
+ #: includes/class-frontend.php:1541
2156
  #: includes/fields/class-number.php:159
2157
  msgid "Please enter a valid number."
2158
  msgstr ""
2162
  msgstr ""
2163
 
2164
  #: includes/admin/class-settings.php:424
2165
+ #: includes/class-frontend.php:1542
2166
  msgid "Please enter a valid positive number."
2167
  msgstr ""
2168
 
2171
  msgstr ""
2172
 
2173
  #: includes/admin/class-settings.php:430
2174
+ #: includes/class-frontend.php:1543
2175
  msgid "Field values do not match."
2176
  msgstr ""
2177
 
2180
  msgstr ""
2181
 
2182
  #: includes/admin/class-settings.php:436
2183
+ #: includes/class-frontend.php:1548
2184
  msgid "Please fill out all blanks."
2185
  msgstr ""
2186
 
2189
  msgstr ""
2190
 
2191
  #: includes/admin/class-settings.php:442
2192
+ #: includes/class-frontend.php:1544
2193
  #: includes/fields/class-checkbox.php:589
2194
  msgid "You have exceeded the number of allowed selections: {#}."
2195
  msgstr ""
2671
  msgid "%1$s is not supported by AMP and is currently disabled.<br><a href=\"%2$s\" rel=\"noopener noreferrer\" target=\"_blank\">Upgrade to reCAPTCHA v3</a> for full AMP support. <br><em>Please note: this message is only displayed to site administrators.</em>"
2672
  msgstr ""
2673
 
2674
+ #: includes/class-frontend.php:1539
2675
  msgid "Click to accept this suggestion."
2676
  msgstr ""
2677
 
2678
+ #: includes/class-frontend.php:1545
2679
  msgid "{count} of {limit} max characters."
2680
  msgstr ""
2681
 
2682
+ #: includes/class-frontend.php:1546
2683
  msgid "{count} of {limit} max words."
2684
  msgstr ""
2685
 
2686
+ #: includes/class-frontend.php:1547
2687
  #: src/Admin/Settings/Captcha.php:203
2688
  msgid "Google reCAPTCHA verification failed, please try again later."
2689
  msgstr ""
2690
 
2691
  #. translators: %s - URL to the troubleshooting guide.
2692
+ #: includes/class-frontend.php:1773
2693
  msgid "Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected. See our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">troubleshooting guide</a> to learn more or contact support."
2694
  msgstr ""
2695
 
2696
+ #: includes/class-frontend.php:1786
2697
  msgid "This message is only displayed to site administrators."
2698
  msgstr ""
2699
 
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 1.6.7.2 =
4
  - Fixed: Admin notice option flag reference.
5
 
1
  == Changelog ==
2
 
3
+ = 1.6.7.3 =
4
+ - Changed: Renamed a misspelled `wpforms_display_sumbit_spinner_src` filter to `wpforms_display_submit_spinner_src`, old name is now deprecated.
5
+ - Fixed: Expired transients are not deleted automatically.
6
+ - Fixed: Entries count race condition under high load in the plugin Lite version.
7
+ - Fixed: Form Builder product education links.
8
+
9
  = 1.6.7.2 =
10
  - Fixed: Admin notice option flag reference.
11
 
includes/admin/admin.php CHANGED
@@ -331,20 +331,20 @@ add_action( 'admin_print_scripts', 'wpforms_admin_hide_unrelated_notices' );
331
  *
332
  * @since 1.3.9
333
  *
334
- * @param string $medium utm_medium URL parameter.
335
- * @param string $content utm_content URL parameter.
336
  *
337
  * @return string.
338
  */
339
  function wpforms_admin_upgrade_link( $medium = 'link', $content = '' ) {
340
 
341
  $upgrade = add_query_arg(
342
- array(
343
  'discount' => 'LITEUPGRADE',
344
  'utm_source' => 'WordPress',
345
  'utm_campaign' => 'liteplugin',
346
  'utm_medium' => apply_filters( 'wpforms_upgrade_link_medium', $medium ),
347
- ),
348
  'https://wpforms.com/lite-upgrade/'
349
  );
350
 
@@ -363,7 +363,7 @@ function wpforms_admin_upgrade_link( $medium = 'link', $content = '' ) {
363
  */
364
  function wpforms_check_php_version() {
365
 
366
- // Display for PHP below 5.6
367
  if ( version_compare( PHP_VERSION, '5.5', '>=' ) ) {
368
  return;
369
  }
@@ -382,16 +382,15 @@ function wpforms_check_php_version() {
382
  \WPForms\Admin\Notice::error(
383
  '<p>' .
384
  sprintf(
385
- wp_kses(
386
- /* translators: %1$s - WPForms plugin name; %2$s - WPForms.com URL to a related doc. */
387
  __( 'Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href="%2$s" target="_blank" rel="noopener noreferrer">Read more</a> for additional information.', 'wpforms-lite' ),
388
- array(
389
- 'a' => array(
390
- 'href' => array(),
391
- 'target' => array(),
392
- 'rel' => array(),
393
- ),
394
- )
395
  ),
396
  '<strong>WPForms</strong>',
397
  'https://wpforms.com/docs/supported-php-version/'
@@ -399,10 +398,10 @@ function wpforms_check_php_version() {
399
  '<br><br><em>' .
400
  wp_kses(
401
  __( '<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WPForms functionality will be disabled.', 'wpforms-lite' ),
402
- array(
403
- 'strong' => array(),
404
- 'em' => array(),
405
- )
406
  ) .
407
  '</em></p>'
408
  );
331
  *
332
  * @since 1.3.9
333
  *
334
+ * @param string $medium URL parameter: utm_medium.
335
+ * @param string $content URL parameter: utm_content.
336
  *
337
  * @return string.
338
  */
339
  function wpforms_admin_upgrade_link( $medium = 'link', $content = '' ) {
340
 
341
  $upgrade = add_query_arg(
342
+ [
343
  'discount' => 'LITEUPGRADE',
344
  'utm_source' => 'WordPress',
345
  'utm_campaign' => 'liteplugin',
346
  'utm_medium' => apply_filters( 'wpforms_upgrade_link_medium', $medium ),
347
+ ],
348
  'https://wpforms.com/lite-upgrade/'
349
  );
350
 
363
  */
364
  function wpforms_check_php_version() {
365
 
366
+ // Display for PHP below 5.6.
367
  if ( version_compare( PHP_VERSION, '5.5', '>=' ) ) {
368
  return;
369
  }
382
  \WPForms\Admin\Notice::error(
383
  '<p>' .
384
  sprintf(
385
+ wp_kses( /* translators: %1$s - WPForms plugin name; %2$s - WPForms.com URL to a related doc. */
 
386
  __( 'Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href="%2$s" target="_blank" rel="noopener noreferrer">Read more</a> for additional information.', 'wpforms-lite' ),
387
+ [
388
+ 'a' => [
389
+ 'href' => [],
390
+ 'target' => [],
391
+ 'rel' => [],
392
+ ],
393
+ ]
394
  ),
395
  '<strong>WPForms</strong>',
396
  'https://wpforms.com/docs/supported-php-version/'
398
  '<br><br><em>' .
399
  wp_kses(
400
  __( '<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WPForms functionality will be disabled.', 'wpforms-lite' ),
401
+ [
402
+ 'strong' => [],
403
+ 'em' => [],
404
+ ]
405
  ) .
406
  '</em></p>'
407
  );
includes/class-frontend.php CHANGED
@@ -996,15 +996,43 @@ class WPForms_Frontend {
996
  );
997
 
998
  if ( ! empty( $settings['ajax_submit'] ) && ! wpforms_is_amp() ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  printf(
1000
  '<img src="%s" class="wpforms-submit-spinner" style="display: none;" width="26" height="26" alt="">',
1001
- esc_url(
1002
- apply_filters(
1003
- 'wpforms_display_sumbit_spinner_src',
1004
- WPFORMS_PLUGIN_URL . 'assets/images/submit-spin.svg',
1005
- $form_data
1006
- )
1007
- )
1008
  );
1009
  }
1010
 
996
  );
997
 
998
  if ( ! empty( $settings['ajax_submit'] ) && ! wpforms_is_amp() ) {
999
+
1000
+ /**
1001
+ * Filter submit spinner image src attribute.
1002
+ *
1003
+ * @since 1.5.4.1
1004
+ * @deprecated 1.6.7.3
1005
+ *
1006
+ * @param string $src Spinner image source.
1007
+ * @param array $form_data Form data and settings.
1008
+ */
1009
+ $src = apply_filters_deprecated(
1010
+ 'wpforms_display_sumbit_spinner_src',
1011
+ [
1012
+ WPFORMS_PLUGIN_URL . 'assets/images/submit-spin.svg',
1013
+ $form_data,
1014
+ ],
1015
+ '1.6.7.3',
1016
+ 'wpforms_display_submit_spinner_src'
1017
+ );
1018
+
1019
+ /**
1020
+ * Filter submit spinner image src attribute.
1021
+ *
1022
+ * @since 1.6.7.3
1023
+ *
1024
+ * @param string $src Spinner image source.
1025
+ * @param array $form_data Form data and settings.
1026
+ */
1027
+ $src = apply_filters(
1028
+ 'wpforms_display_submit_spinner_src',
1029
+ $src,
1030
+ $form_data
1031
+ );
1032
+
1033
  printf(
1034
  '<img src="%s" class="wpforms-submit-spinner" style="display: none;" width="26" height="26" alt="">',
1035
+ esc_url( $src )
 
 
 
 
 
 
1036
  );
1037
  }
1038
 
lite/assets/js/admin/education/core.js CHANGED
@@ -100,8 +100,9 @@ WPFormsEducation.liteCore = window.WPFormsEducation.liteCore || ( function( docu
100
  return;
101
  }
102
 
103
- var message = wpforms_education.upgrade[type].message.replace( /%name%/g, feature ),
104
- upgradeURL = wpforms_education.upgrade[type].url + '&utm_content=' + encodeURIComponent( feature.trim() );
 
105
 
106
  $.alert( {
107
  title : feature + ' ' + wpforms_education.upgrade[type].title,
100
  return;
101
  }
102
 
103
+ var message = wpforms_education.upgrade[ type ].message.replace( /%name%/g, feature ),
104
+ appendChar = /(\?)/.test( wpforms_education.upgrade[ type ].url ) ? '&' : '?',
105
+ upgradeURL = wpforms_education.upgrade[ type ].url + appendChar + 'utm_content=' + encodeURIComponent( feature.trim() );
106
 
107
  $.alert( {
108
  title : feature + ' ' + wpforms_education.upgrade[type].title,
lite/assets/js/admin/education/core.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var WPFormsEducation=window.WPFormsEducation||{};WPFormsEducation.liteCore=window.WPFormsEducation.liteCore||function(i,r){var d={init:function(){r(d.ready)},ready:function(){d.events()},events:function(){d.openModalButtonClick()},openModalButtonClick:function(){r("#wpforms-builder, #wpcontent").on("click",".education-modal",function(o){var t=r(this),e="";o.preventDefault(),o.stopImmediatePropagation(),e=t.hasClass("wpforms-add-fields-button")?t.text()+" "+wpforms_builder.field:t.data("name"),d.upgradeModal(e,t.data("license"),t.data("video"))})},upgradeModal:function(o,t,e){var n,a;void 0!==t&&0!==t.length||(t="pro"),r.inArray(t,["pro","elite"])<0||(n=wpforms_education.upgrade[t].message.replace(/%name%/g,o),a=wpforms_education.upgrade[t].url+"&utm_content="+encodeURIComponent(o.trim()),r.alert({title:o+" "+wpforms_education.upgrade[t].title,icon:"fa fa-lock",content:n,boxWidth:"550px",theme:"modern,wpforms-education",onOpenBefore:function(){var o=_.isEmpty(e)?"":'<iframe src="'+e+'" class="feature-video" frameborder="0" allowfullscreen="" width="490" height="276"></iframe>';this.$btnc.after('<div class="discount-note">'+wpforms_education.upgrade_bonus+o+wpforms_education.upgrade[t].doc+"</div>"),this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:wpforms_education.upgrade[t].button,btnClass:"btn-confirm",keys:["enter"],action:function(){i.open(a,"_blank"),d.upgradeModalThankYou(t)}}}}))},upgradeModalThankYou:function(o){r.alert({title:!1,content:wpforms_education.upgrade[o].modal,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:wpforms_education.ok,btnClass:"btn-confirm",keys:["enter"]}}})}};return d}((document,window),jQuery),WPFormsEducation.liteCore.init();
1
+ "use strict";var WPFormsEducation=window.WPFormsEducation||{};WPFormsEducation.liteCore=window.WPFormsEducation.liteCore||function(r,d){var u={init:function(){d(u.ready)},ready:function(){u.events()},events:function(){u.openModalButtonClick()},openModalButtonClick:function(){d("#wpforms-builder, #wpcontent").on("click",".education-modal",function(t){var o=d(this),e="";t.preventDefault(),t.stopImmediatePropagation(),e=o.hasClass("wpforms-add-fields-button")?o.text()+" "+wpforms_builder.field:o.data("name"),u.upgradeModal(e,o.data("license"),o.data("video"))})},upgradeModal:function(t,o,e){var n,a,i;void 0!==o&&0!==o.length||(o="pro"),d.inArray(o,["pro","elite"])<0||(n=wpforms_education.upgrade[o].message.replace(/%name%/g,t),a=/(\?)/.test(wpforms_education.upgrade[o].url)?"&":"?",i=wpforms_education.upgrade[o].url+a+"utm_content="+encodeURIComponent(t.trim()),d.alert({title:t+" "+wpforms_education.upgrade[o].title,icon:"fa fa-lock",content:n,boxWidth:"550px",theme:"modern,wpforms-education",onOpenBefore:function(){var t=_.isEmpty(e)?"":'<iframe src="'+e+'" class="feature-video" frameborder="0" allowfullscreen="" width="490" height="276"></iframe>';this.$btnc.after('<div class="discount-note">'+wpforms_education.upgrade_bonus+t+wpforms_education.upgrade[o].doc+"</div>"),this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:wpforms_education.upgrade[o].button,btnClass:"btn-confirm",keys:["enter"],action:function(){r.open(i,"_blank"),u.upgradeModalThankYou(o)}}}}))},upgradeModalThankYou:function(t){d.alert({title:!1,content:wpforms_education.upgrade[t].modal,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:wpforms_education.ok,btnClass:"btn-confirm",keys:["enter"]}}})}};return u}((document,window),jQuery),WPFormsEducation.liteCore.init();
lite/wpforms-lite.php CHANGED
@@ -984,6 +984,8 @@ class WPForms_Lite {
984
  */
985
  public function update_entry_count( $fields, $entry, $form_id ) {
986
 
 
 
987
  if ( ! apply_filters( 'wpforms_dash_widget_allow_entries_count_lite', true ) ) {
988
  return;
989
  }
@@ -994,8 +996,19 @@ class WPForms_Lite {
994
  return;
995
  }
996
 
997
- $count = absint( get_post_meta( $form_id, 'wpforms_entries_count', true ) );
998
- update_post_meta( $form_id, 'wpforms_entries_count', $count + 1 );
 
 
 
 
 
 
 
 
 
 
 
999
  }
1000
 
1001
  /**
984
  */
985
  public function update_entry_count( $fields, $entry, $form_id ) {
986
 
987
+ global $wpdb;
988
+
989
  if ( ! apply_filters( 'wpforms_dash_widget_allow_entries_count_lite', true ) ) {
990
  return;
991
  }
996
  return;
997
  }
998
 
999
+ if ( add_post_meta( $form_id, 'wpforms_entries_count', 1, true ) ) {
1000
+ return;
1001
+ }
1002
+
1003
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching
1004
+ $wpdb->query(
1005
+ $wpdb->prepare(
1006
+ "UPDATE {$wpdb->postmeta}
1007
+ SET meta_value = meta_value + 1
1008
+ WHERE post_id = %d AND meta_key = 'wpforms_entries_count'",
1009
+ $form_id
1010
+ )
1011
+ );
1012
  }
1013
 
1014
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpforms, jaredatch, smub, slaFFik
3
  Tags: contact form, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget, user registration form, wordpress registration, wordpress login form, feedback
4
  Requires at least: 4.9
5
  Tested up to: 5.7
6
- Stable tag: 1.6.7.2
7
  Requires PHP: 5.5
8
  License: GNU General Public License v2.0 or later
9
 
@@ -418,6 +418,12 @@ Syed Balkhi
418
 
419
  == Changelog ==
420
 
 
 
 
 
 
 
421
  = 1.6.7.2 =
422
  - Fixed: Admin notice option flag reference.
423
 
3
  Tags: contact form, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget, user registration form, wordpress registration, wordpress login form, feedback
4
  Requires at least: 4.9
5
  Tested up to: 5.7
6
+ Stable tag: 1.6.7.3
7
  Requires PHP: 5.5
8
  License: GNU General Public License v2.0 or later
9
 
418
 
419
  == Changelog ==
420
 
421
+ = 1.6.7.3 =
422
+ - Changed: Renamed a misspelled `wpforms_display_sumbit_spinner_src` filter to `wpforms_display_submit_spinner_src`, old name is now deprecated.
423
+ - Fixed: Expired transients are not deleted automatically.
424
+ - Fixed: Entries count race condition under high load in the plugin Lite version.
425
+ - Fixed: Form Builder product education links.
426
+
427
  = 1.6.7.2 =
428
  - Fixed: Admin notice option flag reference.
429
 
src/Tasks/Tasks.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace WPForms\Tasks;
4
 
 
5
  use WPForms\Tasks\Actions\EntryEmailsTask;
6
 
7
  /**
@@ -35,6 +36,8 @@ class Tasks {
35
  new $task();
36
  }
37
 
 
 
38
  add_action( 'admin_menu', [ $this, 'admin_hide_as_menu' ], PHP_INT_MAX );
39
 
40
  /*
2
 
3
  namespace WPForms\Tasks;
4
 
5
+ use WPForms\Helpers\Transient;
6
  use WPForms\Tasks\Actions\EntryEmailsTask;
7
 
8
  /**
36
  new $task();
37
  }
38
 
39
+ add_action( 'delete_expired_transients', [ Transient::class, 'delete_all_expired' ], 11 );
40
+
41
  add_action( 'admin_menu', [ $this, 'admin_hide_as_menu' ], PHP_INT_MAX );
42
 
43
  /*
wpforms.php CHANGED
@@ -7,7 +7,7 @@
7
  * Requires PHP: 5.5
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
- * Version: 1.6.7.2
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
 
33
  // Plugin version.
34
  if ( ! defined( 'WPFORMS_VERSION' ) ) {
35
- define( 'WPFORMS_VERSION', '1.6.7.2' );
36
  }
37
 
38
  // Plugin Folder Path.
7
  * Requires PHP: 5.5
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
+ * Version: 1.6.7.3
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
32
 
33
  // Plugin version.
34
  if ( ! defined( 'WPFORMS_VERSION' ) ) {
35
+ define( 'WPFORMS_VERSION', '1.6.7.3' );
36
  }
37
 
38
  // Plugin Folder Path.