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

Version Description

  • Fixed: Increase chances for the templates inside the Form Builder to load properly, so occasional empty form creation from a template should be gone.
  • Fixed: PHP fatal error was generated in some cases when Lite Connect attempted to generate site key too many times.
Download this release

Release Info

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

Code changes from version 1.7.5.1 to 1.7.5.2

assets/languages/wpforms-lite.pot CHANGED
@@ -1,13 +1,13 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WPForms Lite 1.7.5.1\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: 2022-06-30T12:24:48+03:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.6.0\n"
13
  "X-Domain: wpforms-lite\n"
@@ -975,7 +975,7 @@ msgid "Field #%d"
975
  msgstr ""
976
 
977
  #: includes/admin/builder/panels/class-fields.php:18
978
- #: src/Admin/Builder/Help.php:253
979
  msgid "Fields"
980
  msgstr ""
981
 
@@ -1097,7 +1097,7 @@ msgid "Showing the first 20 choices.<br> All %s choices will be displayed when v
1097
  msgstr ""
1098
 
1099
  #: includes/admin/builder/panels/class-payments.php:18
1100
- #: src/Admin/Builder/Help.php:255
1101
  msgid "Payments"
1102
  msgstr ""
1103
 
@@ -1453,7 +1453,7 @@ msgid "About Us"
1453
  msgstr ""
1454
 
1455
  #: includes/admin/class-about.php:112
1456
- #: src/Admin/Builder/Help.php:251
1457
  msgid "Getting Started"
1458
  msgstr ""
1459
 
@@ -1578,7 +1578,7 @@ msgstr ""
1578
 
1579
  #: includes/admin/class-about.php:569
1580
  #: lite/wpforms-lite.php:539
1581
- msgid "4000+ integrations with marketing and payment services"
1582
  msgstr ""
1583
 
1584
  #: includes/admin/class-about.php:573
@@ -1939,7 +1939,7 @@ msgstr ""
1939
  #: includes/admin/class-about.php:1252
1940
  #: includes/admin/class-about.php:1266
1941
  #: includes/admin/class-about.php:1280
1942
- msgid "<strong>Bonus:</strong> 4000+ integrations with Zapier."
1943
  msgstr ""
1944
 
1945
  #: includes/admin/class-about.php:1248
@@ -2126,7 +2126,7 @@ msgid "Add New"
2126
  msgstr ""
2127
 
2128
  #: includes/admin/class-menu.php:75
2129
- #: src/Admin/Builder/Help.php:256
2130
  #: src/Admin/Forms/Views.php:423
2131
  #: src/Lite/Admin/DashboardWidget.php:154
2132
  #: src/Logger/Log.php:101
@@ -2152,7 +2152,7 @@ msgid "Info"
2152
  msgstr ""
2153
 
2154
  #: includes/admin/class-menu.php:123
2155
- #: src/Admin/Builder/Help.php:254
2156
  msgid "Addons"
2157
  msgstr ""
2158
 
@@ -5478,15 +5478,15 @@ msgstr ""
5478
  msgid "Form ID: %d"
5479
  msgstr ""
5480
 
5481
- #: src/Admin/Builder/Help.php:252
5482
  msgid "Functionality"
5483
  msgstr ""
5484
 
5485
- #: src/Admin/Builder/Help.php:257
5486
  msgid "Styling"
5487
  msgstr ""
5488
 
5489
- #: src/Admin/Builder/Help.php:258
5490
  msgid "Extending"
5491
  msgstr ""
5492
 
@@ -6089,7 +6089,7 @@ msgstr ""
6089
  msgid "You just hit 100 entries&hellip; and this is just the beginning! Now it’s time to dig into the data and figure out what makes your visitors tick. The User Journey addon shows you what your visitors looked at before submitting your form. Now you can easily find which areas of your site are triggering form conversions."
6090
  msgstr ""
6091
 
6092
- #: src/Admin/Notifications/Notifications.php:735
6093
  msgid "Watch Video"
6094
  msgstr ""
6095
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WPForms Lite 1.7.5.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: 2022-07-15T14:36:56+03:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.6.0\n"
13
  "X-Domain: wpforms-lite\n"
975
  msgstr ""
976
 
977
  #: includes/admin/builder/panels/class-fields.php:18
978
+ #: src/Admin/Builder/Help.php:260
979
  msgid "Fields"
980
  msgstr ""
981
 
1097
  msgstr ""
1098
 
1099
  #: includes/admin/builder/panels/class-payments.php:18
1100
+ #: src/Admin/Builder/Help.php:262
1101
  msgid "Payments"
1102
  msgstr ""
1103
 
1453
  msgstr ""
1454
 
1455
  #: includes/admin/class-about.php:112
1456
+ #: src/Admin/Builder/Help.php:258
1457
  msgid "Getting Started"
1458
  msgstr ""
1459
 
1578
 
1579
  #: includes/admin/class-about.php:569
1580
  #: lite/wpforms-lite.php:539
1581
+ msgid "5000+ integrations with marketing and payment services"
1582
  msgstr ""
1583
 
1584
  #: includes/admin/class-about.php:573
1939
  #: includes/admin/class-about.php:1252
1940
  #: includes/admin/class-about.php:1266
1941
  #: includes/admin/class-about.php:1280
1942
+ msgid "<strong>Bonus:</strong> 5000+ integrations with Zapier."
1943
  msgstr ""
1944
 
1945
  #: includes/admin/class-about.php:1248
2126
  msgstr ""
2127
 
2128
  #: includes/admin/class-menu.php:75
2129
+ #: src/Admin/Builder/Help.php:263
2130
  #: src/Admin/Forms/Views.php:423
2131
  #: src/Lite/Admin/DashboardWidget.php:154
2132
  #: src/Logger/Log.php:101
2152
  msgstr ""
2153
 
2154
  #: includes/admin/class-menu.php:123
2155
+ #: src/Admin/Builder/Help.php:261
2156
  msgid "Addons"
2157
  msgstr ""
2158
 
5478
  msgid "Form ID: %d"
5479
  msgstr ""
5480
 
5481
+ #: src/Admin/Builder/Help.php:259
5482
  msgid "Functionality"
5483
  msgstr ""
5484
 
5485
+ #: src/Admin/Builder/Help.php:264
5486
  msgid "Styling"
5487
  msgstr ""
5488
 
5489
+ #: src/Admin/Builder/Help.php:265
5490
  msgid "Extending"
5491
  msgstr ""
5492
 
6089
  msgid "You just hit 100 entries&hellip; and this is just the beginning! Now it’s time to dig into the data and figure out what makes your visitors tick. The User Journey addon shows you what your visitors looked at before submitting your form. Now you can easily find which areas of your site are triggering form conversions."
6090
  msgstr ""
6091
 
6092
+ #: src/Admin/Notifications/Notifications.php:741
6093
  msgid "Watch Video"
6094
  msgstr ""
6095
 
changelog.txt CHANGED
@@ -1,8 +1,12 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 1.7.5.1 =
4
- - v1.7.5 migration did not complete when a database prefix other than `wp_` was used.
5
- - Form Tags: incorrect links to filter by tags were generated right after saving tags.
6
 
7
  = 1.7.5 =
8
  - Added: Form Tags: add tags to forms with an ability to filter by them; bulk add/edit/delete tags for multiple forms.
1
  == Changelog ==
2
 
3
+ = 1.7.5.2 =
4
+ - Fixed: Increase chances for the templates inside the Form Builder to load properly, so occasional empty form creation from a template should be gone.
5
+ - Fixed: PHP fatal error was generated in some cases when Lite Connect attempted to generate site key too many times.
6
+
7
  = 1.7.5.1 =
8
+ - Fixed: v1.7.5 migration did not complete when a database prefix other than `wp_` was used.
9
+ - Fixed: Incorrect Form Tags links to filter by tags were generated right after saving tags.
10
 
11
  = 1.7.5 =
12
  - Added: Form Tags: add tags to forms with an ability to filter by them; bulk add/edit/delete tags for multiple forms.
includes/admin/class-about.php CHANGED
@@ -566,7 +566,7 @@ class WPForms_About {
566
  <ul class="list-features list-plain">
567
  <li>
568
  <i class="fa fa-check" aria-hidden="true"></i>
569
- <?php esc_html_e( '4000+ integrations with marketing and payment services', 'wpforms-lite' ); ?>
570
  </li>
571
  <li>
572
  <i class="fa fa-check" aria-hidden="true"></i>
@@ -1235,7 +1235,7 @@ class WPForms_About {
1235
  esc_html__( 'Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1236
  '',
1237
  wp_kses(
1238
- __( '<strong>Bonus:</strong> 4000+ integrations with Zapier.', 'wpforms-lite' ),
1239
  [
1240
  'strong' => [],
1241
  ]
@@ -1249,7 +1249,7 @@ class WPForms_About {
1249
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1250
  '',
1251
  wp_kses(
1252
- __( '<strong>Bonus:</strong> 4000+ integrations with Zapier.', 'wpforms-lite' ),
1253
  [
1254
  'strong' => [],
1255
  ]
@@ -1263,7 +1263,7 @@ class WPForms_About {
1263
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1264
  '',
1265
  wp_kses(
1266
- __( '<strong>Bonus:</strong> 4000+ integrations with Zapier.', 'wpforms-lite' ),
1267
  [
1268
  'strong' => [],
1269
  ]
@@ -1277,7 +1277,7 @@ class WPForms_About {
1277
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1278
  '',
1279
  wp_kses(
1280
- __( '<strong>Bonus:</strong> 4000+ integrations with Zapier.', 'wpforms-lite' ),
1281
  [
1282
  'strong' => [],
1283
  ]
566
  <ul class="list-features list-plain">
567
  <li>
568
  <i class="fa fa-check" aria-hidden="true"></i>
569
+ <?php esc_html_e( '5000+ integrations with marketing and payment services', 'wpforms-lite' ); ?>
570
  </li>
571
  <li>
572
  <i class="fa fa-check" aria-hidden="true"></i>
1235
  esc_html__( 'Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1236
  '',
1237
  wp_kses(
1238
+ __( '<strong>Bonus:</strong> 5000+ integrations with Zapier.', 'wpforms-lite' ),
1239
  [
1240
  'strong' => [],
1241
  ]
1249
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1250
  '',
1251
  wp_kses(
1252
+ __( '<strong>Bonus:</strong> 5000+ integrations with Zapier.', 'wpforms-lite' ),
1253
  [
1254
  'strong' => [],
1255
  ]
1263
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1264
  '',
1265
  wp_kses(
1266
+ __( '<strong>Bonus:</strong> 5000+ integrations with Zapier.', 'wpforms-lite' ),
1267
  [
1268
  'strong' => [],
1269
  ]
1277
  esc_html__( 'ActiveCampaign, Constant Contact, Mailchimp, AWeber, GetResponse, Campaign Monitor, Salesforce, Sendinblue, HubSpot, Drip and MailerLite', 'wpforms-lite' ),
1278
  '',
1279
  wp_kses(
1280
+ __( '<strong>Bonus:</strong> 5000+ integrations with Zapier.', 'wpforms-lite' ),
1281
  [
1282
  'strong' => [],
1283
  ]
includes/functions.php CHANGED
@@ -3421,3 +3421,17 @@ function wpforms_utm_link( $link, $medium, $content = '', $term = '' ) {
3421
  $link
3422
  );
3423
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3421
  $link
3422
  );
3423
  }
3424
+
3425
+ /**
3426
+ * Modify the default USer-Agent generated by wp_remote_*() to include additional information.
3427
+ *
3428
+ * @since 1.7.5.2
3429
+ *
3430
+ * @return string
3431
+ */
3432
+ function wpforms_get_default_user_agent() {
3433
+
3434
+ $wpforms_type = wpforms()->is_pro() ? 'Paid' : 'Lite';
3435
+
3436
+ return 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) . '; WPForms/' . $wpforms_type;
3437
+ }
lite/wpforms-lite.php CHANGED
@@ -536,7 +536,7 @@ class WPForms_Lite {
536
  <li><?php esc_html_e( 'Accept user-submitted content with the Post Submissions addon', 'wpforms-lite' ); ?></li>
537
  </ul>
538
  <ul>
539
- <li><?php esc_html_e( '4000+ integrations with marketing and payment services', 'wpforms-lite' ); ?></li>
540
  <li><?php esc_html_e( 'Let users Save and Resume submissions to prevent abandonment', 'wpforms-lite' ); ?></li>
541
  <li><?php esc_html_e( 'Take payments with Stripe, Square, Authorize.Net, and PayPal', 'wpforms-lite' ); ?></li>
542
  <li><?php esc_html_e( 'Collect signatures, geolocation data, and file uploads', 'wpforms-lite' ); ?></li>
536
  <li><?php esc_html_e( 'Accept user-submitted content with the Post Submissions addon', 'wpforms-lite' ); ?></li>
537
  </ul>
538
  <ul>
539
+ <li><?php esc_html_e( '5000+ integrations with marketing and payment services', 'wpforms-lite' ); ?></li>
540
  <li><?php esc_html_e( 'Let users Save and Resume submissions to prevent abandonment', 'wpforms-lite' ); ?></li>
541
  <li><?php esc_html_e( 'Take payments with Stripe, Square, Authorize.Net, and PayPal', 'wpforms-lite' ); ?></li>
542
  <li><?php esc_html_e( 'Collect signatures, geolocation data, and file uploads', 'wpforms-lite' ); ?></li>
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: 5.2
5
  Tested up to: 6.0
6
- Stable tag: 1.7.5.1
7
  Requires PHP: 5.6
8
  License: GNU General Public License v2.0 or later
9
 
@@ -179,7 +179,7 @@ Since contact forms are essential for marketing, WPForms is a must have plugin f
179
  * <a href="https://wpforms.com/addons/sendinblue-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Sendinblue Forms</a> - Create Sendinblue forms to automate your marketing and engage your subscribers.
180
  * <a href="https://wpforms.com/addons/mailerlite-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">MailerLite Forms</a> - Create MailerLite forms to easily add subscribers to your email marketing lists.
181
  * <a href="https://wpforms.com/addons/salesforce-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Salesforce Forms</a> - Easily send your WordPress form contacts and leads to your Salesforce CRM account.
182
- * <a href="https://wpforms.com/addons/zapier-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Zapier Addon</a> - Connect your WordPress forms with over 4000+ apps. Route your contact form data to your favorite CRM, email marketing service, etc.
183
 
184
  After reading this feature list, you can probably imagine why WPForms is the best WordPress contact form plugin on the market.
185
 
@@ -369,7 +369,7 @@ Using our Zapier integration, you can easily connect WPForms with over 1000+ mar
369
 
370
  See all <a href="https://zapier.com/apps/wpforms/integrations">WPForms Zapier Integrations</a>.
371
 
372
- Note: WPForms was voted Zapier's 8th fastest growing app in the world.
373
 
374
  = Can I create a Payment Form with WPForms =
375
 
@@ -429,9 +429,13 @@ Syed Balkhi
429
 
430
  == Changelog ==
431
 
 
 
 
 
432
  = 1.7.5.1 =
433
- - v1.7.5 migration did not complete when a database prefix other than `wp_` was used.
434
- - Form Tags: incorrect links to filter by tags were generated right after saving tags.
435
 
436
  = 1.7.5 =
437
  - Added: Form Tags: add tags to forms with an ability to filter by them; bulk add/edit/delete tags for multiple forms.
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: 5.2
5
  Tested up to: 6.0
6
+ Stable tag: 1.7.5.2
7
  Requires PHP: 5.6
8
  License: GNU General Public License v2.0 or later
9
 
179
  * <a href="https://wpforms.com/addons/sendinblue-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Sendinblue Forms</a> - Create Sendinblue forms to automate your marketing and engage your subscribers.
180
  * <a href="https://wpforms.com/addons/mailerlite-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">MailerLite Forms</a> - Create MailerLite forms to easily add subscribers to your email marketing lists.
181
  * <a href="https://wpforms.com/addons/salesforce-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Salesforce Forms</a> - Easily send your WordPress form contacts and leads to your Salesforce CRM account.
182
+ * <a href="https://wpforms.com/addons/zapier-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend">Zapier Addon</a> - Connect your WordPress forms with over 5000+ apps. Route your contact form data to your favorite CRM, email marketing service, etc.
183
 
184
  After reading this feature list, you can probably imagine why WPForms is the best WordPress contact form plugin on the market.
185
 
369
 
370
  See all <a href="https://zapier.com/apps/wpforms/integrations">WPForms Zapier Integrations</a>.
371
 
372
+ Note: WPForms was voted Zapier's 6th fastest growing app in the world.
373
 
374
  = Can I create a Payment Form with WPForms =
375
 
429
 
430
  == Changelog ==
431
 
432
+ = 1.7.5.2 =
433
+ - Fixed: Increase chances for the templates inside the Form Builder to load properly, so occasional empty form creation from a template should be gone.
434
+ - Fixed: PHP fatal error was generated in some cases when Lite Connect attempted to generate site key too many times.
435
+
436
  = 1.7.5.1 =
437
+ - Fixed: v1.7.5 migration did not complete when a database prefix other than `wp_` was used.
438
+ - Fixed: Incorrect Form Tags links to filter by tags were generated right after saving tags.
439
 
440
  = 1.7.5 =
441
  - Added: Form Tags: add tags to forms with an ability to filter by them; bulk add/edit/delete tags for multiple forms.
src/Admin/Builder/Help.php CHANGED
@@ -179,12 +179,19 @@ class Help {
179
  // Unfortunately, we need to call setup() here for properly scheduled execution.
180
  $this->setup();
181
 
 
 
 
 
 
 
182
  $request = wp_remote_get(
183
- $this->settings['docs_remote_source'],
184
  [
185
  // Limit the processing time to half of the default PHP max execution time,
186
- // so we will have a chance to see the Form Builder even without the docs data.
187
- 'timeout' => 15,
 
188
  ]
189
  );
190
 
179
  // Unfortunately, we need to call setup() here for properly scheduled execution.
180
  $this->setup();
181
 
182
+ $wpforms_key = 'lite';
183
+
184
+ if ( wpforms()->is_pro() ) {
185
+ $wpforms_key = wpforms_get_license_key();
186
+ }
187
+
188
  $request = wp_remote_get(
189
+ add_query_arg( 'tgm-updater-key', $wpforms_key, $this->settings['docs_remote_source'] ),
190
  [
191
  // Limit the processing time to half of the default PHP max execution time,
192
+ // so users will have a chance to see the Form Builder even without the docs data.
193
+ 'timeout' => 15,
194
+ 'user-agent' => wpforms_get_default_user_agent(),
195
  ]
196
  );
197
 
src/Admin/Notifications/Notifications.php CHANGED
@@ -132,7 +132,13 @@ class Notifications {
132
  */
133
  public function fetch_feed() {
134
 
135
- $response = wp_remote_get( self::SOURCE_URL );
 
 
 
 
 
 
136
 
137
  if ( is_wp_error( $response ) ) {
138
  return [];
132
  */
133
  public function fetch_feed() {
134
 
135
+ $response = wp_remote_get(
136
+ self::SOURCE_URL,
137
+ [
138
+ 'timeout' => 10,
139
+ 'user-agent' => wpforms_get_default_user_agent(),
140
+ ]
141
+ );
142
 
143
  if ( is_wp_error( $response ) ) {
144
  return [];
src/Emails/InfoBlocks.php CHANGED
@@ -45,21 +45,27 @@ class InfoBlocks {
45
  */
46
  public function fetch_all() {
47
 
48
- $info = array();
49
 
50
- $res = \wp_remote_get( self::SOURCE_URL );
 
 
 
 
 
 
51
 
52
- if ( \is_wp_error( $res ) ) {
53
  return $info;
54
  }
55
 
56
- $body = \wp_remote_retrieve_body( $res );
57
 
58
  if ( empty( $body ) ) {
59
  return $info;
60
  }
61
 
62
- $body = \json_decode( $body, true );
63
 
64
  return $this->verify_fetched( $body );
65
  }
45
  */
46
  public function fetch_all() {
47
 
48
+ $info = [];
49
 
50
+ $res = wp_remote_get(
51
+ self::SOURCE_URL,
52
+ [
53
+ 'timeout' => 10,
54
+ 'user-agent' => wpforms_get_default_user_agent(),
55
+ ]
56
+ );
57
 
58
+ if ( is_wp_error( $res ) ) {
59
  return $info;
60
  }
61
 
62
+ $body = wp_remote_retrieve_body( $res );
63
 
64
  if ( empty( $body ) ) {
65
  return $info;
66
  }
67
 
68
+ $body = json_decode( $body, true );
69
 
70
  return $this->verify_fetched( $body );
71
  }
src/Helpers/CacheBase.php CHANGED
@@ -177,7 +177,19 @@ abstract class CacheBase {
177
  */
178
  public function update_cache() {
179
 
180
- $request = wp_remote_get( $this->settings['remote_source'] );
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
  if ( is_wp_error( $request ) ) {
183
  return [];
177
  */
178
  public function update_cache() {
179
 
180
+ $wpforms_key = 'lite';
181
+
182
+ if ( wpforms()->is_pro() ) {
183
+ $wpforms_key = wpforms_get_license_key();
184
+ }
185
+
186
+ $request = wp_remote_get(
187
+ add_query_arg( 'tgm-updater-key', $wpforms_key, $this->settings['remote_source'] ),
188
+ [
189
+ 'timeout' => 10,
190
+ 'user-agent' => wpforms_get_default_user_agent(),
191
+ ]
192
+ );
193
 
194
  if ( is_wp_error( $request ) ) {
195
  return [];
src/Integrations/LiteConnect/API.php CHANGED
@@ -447,7 +447,7 @@ class API {
447
  $wpforms_settings = get_option( 'wpforms_settings', [] );
448
  $wpforms_settings[ LiteConnect::SETTINGS_SLUG ] = 0;
449
 
450
- wpforms_update_settings( $wpforms_settings );
451
  }
452
 
453
  // Store actual attempt counter value to the option.
447
  $wpforms_settings = get_option( 'wpforms_settings', [] );
448
  $wpforms_settings[ LiteConnect::SETTINGS_SLUG ] = 0;
449
 
450
+ update_option( 'wpforms_settings', $wpforms_settings );
451
  }
452
 
453
  // Store actual attempt counter value to the option.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,12 +53,12 @@ class ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire7bdc24c7e7155c0e5d8285672b5d2b6c($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
@@ -70,7 +70,7 @@ class ComposerAutoloaderInit7bdc24c7e7155c0e5d8285672b5d2b6c
70
  * @param string $file
71
  * @return void
72
  */
73
- function composerRequire7bdc24c7e7155c0e5d8285672b5d2b6c($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire0dbe9d3c83c36b21a651be634a153f2b($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
70
  * @param string $file
71
  * @return void
72
  */
73
+ function composerRequire0dbe9d3c83c36b21a651be634a153f2b($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@@ -65,9 +65,9 @@ class ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c
65
  public static function getInitializer(ClassLoader $loader)
66
  {
67
  return \Closure::bind(function () use ($loader) {
68
- $loader->prefixLengthsPsr4 = ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c::$prefixLengthsPsr4;
69
- $loader->prefixDirsPsr4 = ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c::$prefixDirsPsr4;
70
- $loader->classMap = ComposerStaticInit7bdc24c7e7155c0e5d8285672b5d2b6c::$classMap;
71
 
72
  }, null, ClassLoader::class);
73
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
65
  public static function getInitializer(ClassLoader $loader)
66
  {
67
  return \Closure::bind(function () use ($loader) {
68
+ $loader->prefixLengthsPsr4 = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$prefixLengthsPsr4;
69
+ $loader->prefixDirsPsr4 = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$prefixDirsPsr4;
70
+ $loader->classMap = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$classMap;
71
 
72
  }, null, ClassLoader::class);
73
  }
vendor/composer/installed.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => 'dev-develop',
4
- 'version' => 'dev-develop',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => 'b5afbeda9eaf005ab256627241a8b0f74e6c261d',
9
  'name' => 'awesomemotive/wpforms',
10
  'dev' => true,
11
  ),
12
  'versions' => array(
13
  'awesomemotive/wpforms' => array(
14
- 'pretty_version' => 'dev-develop',
15
- 'version' => 'dev-develop',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => 'b5afbeda9eaf005ab256627241a8b0f74e6c261d',
20
  'dev_requirement' => false,
21
  ),
22
  'mk-j/php_xlsxwriter' => array(
@@ -85,12 +85,12 @@
85
  'dev_requirement' => false,
86
  ),
87
  'woocommerce/action-scheduler' => array(
88
- 'pretty_version' => '3.4.1',
89
- 'version' => '3.4.1.0',
90
  'type' => 'wordpress-plugin',
91
  'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
92
  'aliases' => array(),
93
- 'reference' => '9ce261d7055650331d6d433c03bf188e6dd2b259',
94
  'dev_requirement' => false,
95
  ),
96
  ),
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => 'dev-master',
4
+ 'version' => 'dev-master',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '06b6ad64684bf424d7a6a67f889497335360feb9',
9
  'name' => 'awesomemotive/wpforms',
10
  'dev' => true,
11
  ),
12
  'versions' => array(
13
  'awesomemotive/wpforms' => array(
14
+ 'pretty_version' => 'dev-master',
15
+ 'version' => 'dev-master',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '06b6ad64684bf424d7a6a67f889497335360feb9',
20
  'dev_requirement' => false,
21
  ),
22
  'mk-j/php_xlsxwriter' => array(
85
  'dev_requirement' => false,
86
  ),
87
  'woocommerce/action-scheduler' => array(
88
+ 'pretty_version' => '3.4.2',
89
+ 'version' => '3.4.2.0',
90
  'type' => 'wordpress-plugin',
91
  'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
92
  'aliases' => array(),
93
+ 'reference' => '7d8e830b6387410ccf11708194d3836f01cb2942',
94
  'dev_requirement' => false,
95
  ),
96
  ),
vendor/woocommerce/action-scheduler/action-scheduler.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A robust scheduling library for use in WordPress plugins.
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/
8
- * Version: 3.4.0
9
  * License: GPLv3
10
  *
11
  * Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
5
  * Description: A robust scheduling library for use in WordPress plugins.
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/
8
+ * Version: 3.4.2
9
  * License: GPLv3
10
  *
11
  * Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php CHANGED
@@ -839,6 +839,15 @@ class ActionScheduler_DBStore extends ActionScheduler_Store {
839
  if ( empty( $updated ) ) {
840
  throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
841
  }
 
 
 
 
 
 
 
 
 
842
  }
843
 
844
  /**
839
  if ( empty( $updated ) ) {
840
  throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
841
  }
842
+
843
+ /**
844
+ * Fires after a scheduled action has been completed.
845
+ *
846
+ * @since 3.4.2
847
+ *
848
+ * @param int $action_id Action ID.
849
+ */
850
+ do_action( 'action_scheduler_completed_action', $action_id );
851
  }
852
 
853
  /**
vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php CHANGED
@@ -987,6 +987,15 @@ class ActionScheduler_wpPostStore extends ActionScheduler_Store {
987
  if ( is_wp_error( $result ) ) {
988
  throw new RuntimeException( $result->get_error_message() );
989
  }
 
 
 
 
 
 
 
 
 
990
  }
991
 
992
  /**
987
  if ( is_wp_error( $result ) ) {
988
  throw new RuntimeException( $result->get_error_message() );
989
  }
990
+
991
+ /**
992
+ * Fires after a scheduled action has been completed.
993
+ *
994
+ * @since 3.4.2
995
+ *
996
+ * @param int $action_id Action ID.
997
+ */
998
+ do_action( 'action_scheduler_completed_action', $action_id );
999
  }
1000
 
1001
  /**
wpforms.php CHANGED
@@ -7,7 +7,7 @@
7
  * Requires PHP: 5.6
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
- * Version: 1.7.5.1
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
@@ -36,7 +36,7 @@ if ( ! defined( 'WPFORMS_VERSION' ) ) {
36
  *
37
  * @since 1.0.0
38
  */
39
- define( 'WPFORMS_VERSION', '1.7.5.1' );
40
  }
41
 
42
  // Plugin Folder Path.
7
  * Requires PHP: 5.6
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
+ * Version: 1.7.5.2
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
36
  *
37
  * @since 1.0.0
38
  */
39
+ define( 'WPFORMS_VERSION', '1.7.5.2' );
40
  }
41
 
42
  // Plugin Folder Path.