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

Version Description

  • Changed: Textdomain loading to a later priority.
  • Changed: Allow the WPForms_Builder class to be accessible.
  • Changed: Move the confirmation message wpautop to an earlier priority to not conflict with content added using filters.
  • Fixed: Form builder templates area not aligning correctly in some browsers.
  • Fixed: Incorrect permissions check for annoucements feed.
Download this release

Release Info

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

Code changes from version 1.4.4 to 1.4.4.1

assets/js/admin-builder.js CHANGED
@@ -105,11 +105,9 @@
105
 
106
  // Load match heights
107
  $('.wpforms-setup-templates.core .wpforms-template-inner').matchHeight({
108
- property: 'min-height',
109
  byRow: false
110
  });
111
  $('.wpforms-setup-templates.additional .wpforms-template-inner').matchHeight({
112
- property: 'min-height',
113
  byRow: false
114
  });
115
 
105
 
106
  // Load match heights
107
  $('.wpforms-setup-templates.core .wpforms-template-inner').matchHeight({
 
108
  byRow: false
109
  });
110
  $('.wpforms-setup-templates.additional .wpforms-template-inner').matchHeight({
 
111
  byRow: false
112
  });
113
 
changelog.txt CHANGED
@@ -1,5 +1,12 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
3
  = 1.4.4 =
4
  - Added: Advanced setting for Multiple Choice and Checkbox fields to randomize choices
5
  - Changed: Admin menu icons now uses SVG instead of custom font icon
1
  == Changelog ==
2
 
3
+ = 1.4.4.1 =
4
+ - Changed: Textdomain loading to a later priority.
5
+ - Changed: Allow the `WPForms_Builder` class to be accessible.
6
+ - Changed: Move the confirmation message `wpautop` to an earlier priority to not conflict with content added using filters.
7
+ - Fixed: Form builder templates area not aligning correctly in some browsers.
8
+ - Fixed: Incorrect permissions check for annoucements feed.
9
+
10
  = 1.4.4 =
11
  - Added: Advanced setting for Multiple Choice and Checkbox fields to randomize choices
12
  - Changed: Admin menu icons now uses SVG instead of custom font icon
includes/admin/admin.php CHANGED
@@ -369,14 +369,25 @@ function wpforms_check_php_version() {
369
  '<strong>WPForms</strong>',
370
  'https://wpforms.com/docs/supported-php-version/'
371
  ) .
 
 
 
 
 
 
 
 
372
  '</p>'
373
  );
374
  }
375
-
376
  add_action( 'admin_init', 'wpforms_check_php_version' );
377
 
378
  /**
379
  * Get an upgrade modal text.
 
 
 
 
380
  */
381
  function wpforms_get_upgrade_modal_text() {
382
 
@@ -420,7 +431,7 @@ function wpforms_get_upgrade_modal_text() {
420
  ),
421
  )
422
  ),
423
- 'https://wpforms.com/docs/upgrade-wpforms-lite-paid-license/'
424
  ) .
425
  '</p>';
426
  }
369
  '<strong>WPForms</strong>',
370
  'https://wpforms.com/docs/supported-php-version/'
371
  ) .
372
+ '<br><br>' .
373
+ wp_kses(
374
+ __( '<em><strong>Please Note:</strong> After April 2018, WPForms will be deactivated if not further action is taken.</em>', 'wpforms' ),
375
+ array(
376
+ 'strong' => array(),
377
+ 'em' => array(),
378
+ )
379
+ ) .
380
  '</p>'
381
  );
382
  }
 
383
  add_action( 'admin_init', 'wpforms_check_php_version' );
384
 
385
  /**
386
  * Get an upgrade modal text.
387
+ *
388
+ * @since 1.4.4
389
+ *
390
+ * @return string
391
  */
392
  function wpforms_get_upgrade_modal_text() {
393
 
431
  ),
432
  )
433
  ),
434
+ 'https://wpforms.com/docs/upgrade-wpforms-lite-paid-license/?utm_source=WordPress&amp;utm_medium=link&amp;utm_campaign=liteplugin'
435
  ) .
436
  '</p>';
437
  }
includes/admin/builder/class-builder.php CHANGED
@@ -11,6 +11,15 @@
11
  */
12
  class WPForms_Builder {
13
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Current view (panel).
16
  *
@@ -35,6 +44,14 @@ class WPForms_Builder {
35
  */
36
  public $form;
37
 
 
 
 
 
 
 
 
 
38
  /**
39
  * Current template information.
40
  *
@@ -44,14 +61,21 @@ class WPForms_Builder {
44
  public $template;
45
 
46
  /**
47
- * Primary class constructor.
48
  *
49
- * @since 1.0.0
 
 
50
  */
51
- public function __construct() {
 
 
52
 
53
- // Maybe load form builder.
54
- add_action( 'admin_init', array( $this, 'init' ) );
 
 
 
55
  }
56
 
57
  /**
@@ -82,7 +106,8 @@ class WPForms_Builder {
82
  wpforms()->preview->form_preview_check();
83
 
84
  // Fetch form.
85
- $this->form = wpforms()->form->get( $form_id );
 
86
 
87
  // Fetch template information.
88
  $this->template = apply_filters( 'wpforms_builder_template_active', array(), $this->form );
@@ -427,8 +452,7 @@ class WPForms_Builder {
427
  */
428
  public function output() {
429
 
430
- $form_id = $this->form ? absint( $this->form->ID ) : '';
431
- $form_data = $this->form ? wpforms_decode( $this->form->post_content ) : false;
432
  ?>
433
 
434
  <div id="wpforms-builder">
@@ -447,7 +471,7 @@ class WPForms_Builder {
447
  <form name="wpforms-builder" id="wpforms-builder-form" method="post" data-id="<?php echo $form_id; ?>">
448
 
449
  <input type="hidden" name="id" value="<?php echo $form_id; ?>">
450
- <input type="hidden" value="<?php echo absint( $form_data['field_id'] ); ?>" name="field_id" id="wpforms-field-id">
451
 
452
  <!-- Toolbar -->
453
  <div class="wpforms-toolbar">
@@ -514,4 +538,4 @@ class WPForms_Builder {
514
  }
515
  }
516
 
517
- new WPForms_Builder;
11
  */
12
  class WPForms_Builder {
13
 
14
+ /**
15
+ * One is the loneliest number that you'll ever do.
16
+ *
17
+ * @since 1.4.4.1
18
+ *
19
+ * @var object
20
+ */
21
+ private static $instance;
22
+
23
  /**
24
  * Current view (panel).
25
  *
44
  */
45
  public $form;
46
 
47
+ /**
48
+ * Current form data.
49
+ *
50
+ * @since 1.4.4.1
51
+ * @var array
52
+ */
53
+ public $form_data;
54
+
55
  /**
56
  * Current template information.
57
  *
61
  public $template;
62
 
63
  /**
64
+ * Main Instance.
65
  *
66
+ * @since 1.4.4.1
67
+ *
68
+ * @return WPForms_Builder
69
  */
70
+ public static function instance() {
71
+
72
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof WPForms_Builder ) ) {
73
 
74
+ self::$instance = new WPForms_Builder();
75
+
76
+ add_action( 'admin_init', array( self::$instance, 'init' ), 10 );
77
+ }
78
+ return self::$instance;
79
  }
80
 
81
  /**
106
  wpforms()->preview->form_preview_check();
107
 
108
  // Fetch form.
109
+ $this->form = wpforms()->form->get( $form_id );
110
+ $this->form_data = $this->form ? wpforms_decode( $this->form->post_content ) : false;
111
 
112
  // Fetch template information.
113
  $this->template = apply_filters( 'wpforms_builder_template_active', array(), $this->form );
452
  */
453
  public function output() {
454
 
455
+ $form_id = $this->form ? absint( $this->form->ID ) : '';
 
456
  ?>
457
 
458
  <div id="wpforms-builder">
471
  <form name="wpforms-builder" id="wpforms-builder-form" method="post" data-id="<?php echo $form_id; ?>">
472
 
473
  <input type="hidden" name="id" value="<?php echo $form_id; ?>">
474
+ <input type="hidden" value="<?php echo absint( $this->form_data['field_id'] ); ?>" name="field_id" id="wpforms-field-id">
475
 
476
  <!-- Toolbar -->
477
  <div class="wpforms-toolbar">
538
  }
539
  }
540
 
541
+ WPForms_Builder::instance();
includes/admin/class-am-notification.php CHANGED
@@ -11,7 +11,7 @@ if ( ! class_exists( 'AM_Notification' ) ) {
11
  * @author AwesomeMotive Team
12
  * @license GPL-2.0+
13
  * @copyright Copyright (c) 2018, Awesome Motive LLC
14
- * @version 1.0.5
15
  */
16
  class AM_Notification {
17
 
@@ -186,7 +186,7 @@ if ( ! class_exists( 'AM_Notification' ) ) {
186
  * @since 1.0.0
187
  */
188
  public function display_notifications() {
189
- if ( ! current_user_can( apply_filters( 'am_notifications_display', is_super_admin() ) ) ) {
190
  return;
191
  }
192
 
@@ -425,7 +425,7 @@ if ( ! class_exists( 'AM_Notification' ) ) {
425
  * @since 1.0.0
426
  */
427
  public function dismiss_notification() {
428
- if ( ! current_user_can( apply_filters( 'am_notifications_display', is_super_admin() ) ) ) {
429
  die;
430
  }
431
 
11
  * @author AwesomeMotive Team
12
  * @license GPL-2.0+
13
  * @copyright Copyright (c) 2018, Awesome Motive LLC
14
+ * @version 1.0.6
15
  */
16
  class AM_Notification {
17
 
186
  * @since 1.0.0
187
  */
188
  public function display_notifications() {
189
+ if ( ! apply_filters( 'am_notifications_display', is_super_admin() ) ) {
190
  return;
191
  }
192
 
425
  * @since 1.0.0
426
  */
427
  public function dismiss_notification() {
428
+ if ( ! apply_filters( 'am_notifications_display', is_super_admin() ) ) {
429
  die;
430
  }
431
 
includes/class-frontend.php CHANGED
@@ -207,14 +207,14 @@ class WPForms_Frontend {
207
  $complete = ! empty( $_POST['wpforms']['complete'] ) ? $_POST['wpforms']['complete'] : array();
208
  $entry_id = ! empty( $_POST['wpforms']['entry_id'] ) ? $_POST['wpforms']['entry_id'] : 0;
209
  $message = apply_filters( 'wpforms_process_smart_tags', $settings['confirmation_message'], $form_data, $complete, $entry_id );
210
- $message = apply_filters( 'wpforms_frontend_confirmation_message', $message, $form_data );
211
  $class = wpforms_setting( 'disable-css', '1' ) == '1' ? 'wpforms-confirmation-container-full' : 'wpforms-confirmation-container';
212
 
213
  printf(
214
  '<div class="%s" id="wpforms-confirmation-%d">%s</div>',
215
  $class,
216
  $form_id,
217
- wpautop( $message )
218
  );
219
  }
220
 
207
  $complete = ! empty( $_POST['wpforms']['complete'] ) ? $_POST['wpforms']['complete'] : array();
208
  $entry_id = ! empty( $_POST['wpforms']['entry_id'] ) ? $_POST['wpforms']['entry_id'] : 0;
209
  $message = apply_filters( 'wpforms_process_smart_tags', $settings['confirmation_message'], $form_data, $complete, $entry_id );
210
+ $message = apply_filters( 'wpforms_frontend_confirmation_message', wpautop( $message ), $form_data );
211
  $class = wpforms_setting( 'disable-css', '1' ) == '1' ? 'wpforms-confirmation-container-full' : 'wpforms-confirmation-container';
212
 
213
  printf(
214
  '<div class="%s" id="wpforms-confirmation-%d">%s</div>',
215
  $class,
216
  $form_id,
217
+ $message
218
  );
219
  }
220
 
includes/class-process.php CHANGED
@@ -198,7 +198,7 @@ class WPForms_Process {
198
 
199
  // Logs entry depending on log levels set.
200
  wpforms_log(
201
- 'Entry',
202
  $this->fields,
203
  array(
204
  'type' => array( 'entry' ),
198
 
199
  // Logs entry depending on log levels set.
200
  wpforms_log(
201
+ $entry_id ? "Entry {$entry_id}" : 'Entry',
202
  $this->fields,
203
  array(
204
  'type' => array( 'entry' ),
languages/wpforms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WPForms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPForms 1.4.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms\n"
7
- "POT-Creation-Date: 2018-01-31 15:29:16+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -33,13 +33,13 @@ msgstr ""
33
  msgid "Install Addon"
34
  msgstr ""
35
 
36
- #: includes/admin/admin.php:134 includes/admin/builder/class-builder.php:292
37
  #: includes/admin/class-editor.php:109
38
  #: pro/includes/admin/entries/class-entries-single.php:608
39
  msgid "Cancel"
40
  msgstr ""
41
 
42
- #: includes/admin/admin.php:135 includes/admin/builder/class-builder.php:294
43
  #: includes/admin/class-editor.php:72 includes/class-preview.php:161
44
  msgid "Close"
45
  msgstr ""
@@ -102,7 +102,7 @@ msgstr ""
102
  msgid "Are you sure you want to duplicate this form?"
103
  msgstr ""
104
 
105
- #: includes/admin/admin.php:149 includes/admin/builder/class-builder.php:302
106
  msgid "Heads up!"
107
  msgstr ""
108
 
@@ -110,7 +110,7 @@ msgstr ""
110
  msgid "Please select at least one form to import."
111
  msgstr ""
112
 
113
- #: includes/admin/admin.php:153 includes/admin/builder/class-builder.php:293
114
  msgid "OK"
115
  msgstr ""
116
 
@@ -163,30 +163,36 @@ msgid ""
163
  "\"noopener noreferrer\">Read more</a> for additional information."
164
  msgstr ""
165
 
166
- #: includes/admin/admin.php:385
 
 
 
 
 
 
167
  msgid "Thanks for your interest in WPForms Pro!"
168
  msgstr ""
169
 
170
  #. translators: %s - WPForms.com contact page URL.
171
- #: includes/admin/admin.php:389
172
  msgid ""
173
  "If you have any questions or issues just <a href=\"%s\" target=\"_blank\" "
174
  "rel=\"noopener noreferrer\">let us know</a>."
175
  msgstr ""
176
 
177
- #: includes/admin/admin.php:403
178
  msgid ""
179
  "After purchasing WPForms Pro, you'll need to <strong>download and install "
180
  "the Pro version of the plugin</strong>, and then <strong>remove the free "
181
  "plugin</strong>."
182
  msgstr ""
183
 
184
- #: includes/admin/admin.php:408
185
  msgid "(Don't worry, all your forms and settings will be preserved.)"
186
  msgstr ""
187
 
188
  #. translators: %s - WPForms.com upgrade from Lite to paid docs page URL.
189
- #: includes/admin/admin.php:414
190
  msgid ""
191
  "Check out <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">our "
192
  "documentation</a> for step-by-step instructions."
@@ -228,61 +234,61 @@ msgstr ""
228
  msgid "taxonomy"
229
  msgstr ""
230
 
231
- #: includes/admin/builder/class-builder.php:279
232
  #: includes/class-conditional-logic-core.php:449
233
  msgid "AND"
234
  msgstr ""
235
 
236
- #: includes/admin/builder/class-builder.php:281
237
  msgid "Add New Choices"
238
  msgstr ""
239
 
240
- #: includes/admin/builder/class-builder.php:282
241
  #: includes/fields/class-base.php:363
242
  msgid "Bulk Add"
243
  msgstr ""
244
 
245
- #: includes/admin/builder/class-builder.php:283
246
  msgid "Hide Bulk Add"
247
  msgstr ""
248
 
249
- #: includes/admin/builder/class-builder.php:284
250
  msgid "Add Choices (one per line)"
251
  msgstr ""
252
 
253
- #: includes/admin/builder/class-builder.php:285
254
  msgid ""
255
  "Blue\n"
256
  "Red\n"
257
  "Green"
258
  msgstr ""
259
 
260
- #: includes/admin/builder/class-builder.php:286
261
  msgid "Show presets"
262
  msgstr ""
263
 
264
- #: includes/admin/builder/class-builder.php:287
265
  msgid "Hide presets"
266
  msgstr ""
267
 
268
- #: includes/admin/builder/class-builder.php:291
269
  msgid ""
270
  "The {source} {type} contains over {limit} items ({total}). This may make the "
271
  "field difficult for your visitors to use and/or cause the form to be slow."
272
  msgstr ""
273
 
274
- #: includes/admin/builder/class-builder.php:295
275
  msgid ""
276
  "Due to form changes, conditional logic rules have been removed or updated:"
277
  msgstr ""
278
 
279
- #: includes/admin/builder/class-builder.php:296
280
  msgid ""
281
  "Are you sure you want to disable conditional logic? This will remove the "
282
  "rules for this field or setting."
283
  msgstr ""
284
 
285
- #: includes/admin/builder/class-builder.php:297
286
  #: pro/includes/admin/entries/class-entries-list-table.php:221
287
  #: pro/includes/admin/entries/class-entries-list-table.php:232
288
  #: pro/includes/admin/entries/class-entries-list-table.php:709
@@ -291,294 +297,294 @@ msgstr ""
291
  msgid "Field"
292
  msgstr ""
293
 
294
- #: includes/admin/builder/class-builder.php:298
295
  msgid "Field Locked"
296
  msgstr ""
297
 
298
- #: includes/admin/builder/class-builder.php:299
299
  msgid "This field cannot be deleted or duplicated."
300
  msgstr ""
301
 
302
- #: includes/admin/builder/class-builder.php:300
303
  msgid "Available Fields"
304
  msgstr ""
305
 
306
- #: includes/admin/builder/class-builder.php:301
307
  msgid "No fields available"
308
  msgstr ""
309
 
310
- #: includes/admin/builder/class-builder.php:304
311
  msgid "No email fields"
312
  msgstr ""
313
 
314
- #: includes/admin/builder/class-builder.php:305
315
  msgid "Are you sure you want to delete this notification?"
316
  msgstr ""
317
 
318
- #: includes/admin/builder/class-builder.php:306
319
  msgid "Enter a notification name"
320
  msgstr ""
321
 
322
- #: includes/admin/builder/class-builder.php:307
323
  msgid "Eg: User Confirmation"
324
  msgstr ""
325
 
326
- #: includes/admin/builder/class-builder.php:308
327
  msgid "You must provide a notification name"
328
  msgstr ""
329
 
330
- #: includes/admin/builder/class-builder.php:309
331
  msgid ""
332
  "Form must contain one notification. To disable all notifications use the "
333
  "Notifications dropdown setting."
334
  msgstr ""
335
 
336
- #: includes/admin/builder/class-builder.php:310 lite/wpforms-lite.php:110
337
  #: pro/wpforms-pro.php:435
338
  msgid "Default Notification"
339
  msgstr ""
340
 
341
- #: includes/admin/builder/class-builder.php:311
342
- #: includes/admin/builder/class-builder.php:483
343
  msgid "Save"
344
  msgstr ""
345
 
346
- #: includes/admin/builder/class-builder.php:312
347
  msgid "Saving ..."
348
  msgstr ""
349
 
350
- #: includes/admin/builder/class-builder.php:313
351
  msgid "Saved!"
352
  msgstr ""
353
 
354
- #: includes/admin/builder/class-builder.php:314
355
  msgid "Save and Exit"
356
  msgstr ""
357
 
358
- #: includes/admin/builder/class-builder.php:316
359
  #: includes/fields/class-base.php:550
360
  msgid "Show Layouts"
361
  msgstr ""
362
 
363
- #: includes/admin/builder/class-builder.php:317
364
  msgid "Hide Layouts"
365
  msgstr ""
366
 
367
- #: includes/admin/builder/class-builder.php:318
368
  msgid "Select your layout"
369
  msgstr ""
370
 
371
- #: includes/admin/builder/class-builder.php:319
372
  msgid "Select your column"
373
  msgstr ""
374
 
375
- #: includes/admin/builder/class-builder.php:320
376
- #: includes/admin/builder/class-builder.php:442
377
  msgid "Loading"
378
  msgstr ""
379
 
380
- #: includes/admin/builder/class-builder.php:326
381
  msgid "Use Template"
382
  msgstr ""
383
 
384
- #: includes/admin/builder/class-builder.php:327
385
  msgid ""
386
  "Changing templates on an existing form will DELETE existing form fields. Are "
387
  "you sure you want apply the new template?"
388
  msgstr ""
389
 
390
- #: includes/admin/builder/class-builder.php:328
391
  msgid ""
392
  "You are almost done. To embed this form on your site, please paste the "
393
  "following shortcode inside a post or page."
394
  msgstr ""
395
 
396
- #: includes/admin/builder/class-builder.php:329
397
  msgid "Or you can follow the instructions in this video."
398
  msgstr ""
399
 
400
- #: includes/admin/builder/class-builder.php:330
401
- #: includes/admin/builder/class-builder.php:488
402
  msgid "Exit"
403
  msgstr ""
404
 
405
- #: includes/admin/builder/class-builder.php:332
406
  msgid "If you exit without saving, your changes will be lost."
407
  msgstr ""
408
 
409
- #: includes/admin/builder/class-builder.php:333
410
  msgid "Are you sure you want to delete this field?"
411
  msgstr ""
412
 
413
- #: includes/admin/builder/class-builder.php:334
414
  msgid "Are you sure you want to duplicate this field?"
415
  msgstr ""
416
 
417
- #: includes/admin/builder/class-builder.php:335
418
  msgid "(copy)"
419
  msgstr ""
420
 
421
- #: includes/admin/builder/class-builder.php:336
422
  msgid "Please enter a form name."
423
  msgstr ""
424
 
425
- #: includes/admin/builder/class-builder.php:337
426
  msgid "This item must contain at least one choice."
427
  msgstr ""
428
 
429
- #: includes/admin/builder/class-builder.php:338
430
  #: includes/fields/class-base.php:253 includes/fields/class-base.php:599
431
  #: lite/wpforms-lite.php:101 pro/wpforms-pro.php:428
432
  msgid "Off"
433
  msgstr ""
434
 
435
- #: includes/admin/builder/class-builder.php:339
436
  #: includes/fields/class-base.php:253 lite/wpforms-lite.php:100
437
  #: pro/wpforms-pro.php:427
438
  msgid "On"
439
  msgstr ""
440
 
441
- #: includes/admin/builder/class-builder.php:340
442
  msgid "or"
443
  msgstr ""
444
 
445
- #: includes/admin/builder/class-builder.php:341
446
  #: includes/admin/class-am-deactivation-survey.php:307
447
  #: includes/templates/class-suggestion.php:61
448
  msgid "Other"
449
  msgstr ""
450
 
451
- #: includes/admin/builder/class-builder.php:342
452
  #: includes/class-conditional-logic-core.php:372
453
  #: pro/includes/admin/entries/class-entries-list-table.php:727
454
  msgid "is"
455
  msgstr ""
456
 
457
- #: includes/admin/builder/class-builder.php:343
458
  #: includes/class-conditional-logic-core.php:373
459
  #: pro/includes/admin/entries/class-entries-list-table.php:728
460
  msgid "is not"
461
  msgstr ""
462
 
463
- #: includes/admin/builder/class-builder.php:344
464
  #: includes/class-conditional-logic-core.php:374
465
  msgid "empty"
466
  msgstr ""
467
 
468
- #: includes/admin/builder/class-builder.php:345
469
  #: includes/class-conditional-logic-core.php:375
470
  msgid "not empty"
471
  msgstr ""
472
 
473
- #: includes/admin/builder/class-builder.php:346
474
  #: includes/class-conditional-logic-core.php:380
475
  #: pro/includes/admin/entries/class-entries-list-table.php:725
476
  msgid "contains"
477
  msgstr ""
478
 
479
- #: includes/admin/builder/class-builder.php:347
480
  #: includes/class-conditional-logic-core.php:381
481
  #: pro/includes/admin/entries/class-entries-list-table.php:726
482
  msgid "does not contain"
483
  msgstr ""
484
 
485
- #: includes/admin/builder/class-builder.php:348
486
  #: includes/class-conditional-logic-core.php:382
487
  msgid "starts with"
488
  msgstr ""
489
 
490
- #: includes/admin/builder/class-builder.php:349
491
  #: includes/class-conditional-logic-core.php:383
492
  msgid "ends with"
493
  msgstr ""
494
 
495
- #: includes/admin/builder/class-builder.php:350
496
  msgid ""
497
  "Form entries must be stored to accept payments. Please enable saving form "
498
  "entries in the General settings first."
499
  msgstr ""
500
 
501
- #: includes/admin/builder/class-builder.php:351
502
  #: pro/includes/fields/class-page-break.php:199
503
  #: pro/includes/fields/class-page-break.php:521
504
  msgid "Previous"
505
  msgstr ""
506
 
507
- #: includes/admin/builder/class-builder.php:352
508
  #: includes/class-conditional-logic-core.php:449
509
  msgid "Create new rule"
510
  msgstr ""
511
 
512
- #: includes/admin/builder/class-builder.php:353
513
  msgid "Add new group"
514
  msgstr ""
515
 
516
- #: includes/admin/builder/class-builder.php:354
517
  #: includes/class-conditional-logic-core.php:450
518
  msgid "Delete rule"
519
  msgstr ""
520
 
521
- #: includes/admin/builder/class-builder.php:356
522
  #: includes/admin/builder/functions.php:255 includes/fields/class-base.php:496
523
  msgid "Show Smart Tags"
524
  msgstr ""
525
 
526
- #: includes/admin/builder/class-builder.php:357
527
  msgid "Hide Smart Tags"
528
  msgstr ""
529
 
530
- #: includes/admin/builder/class-builder.php:358
531
  #: includes/class-conditional-logic-core.php:331
532
  msgid "-- Select Field --"
533
  msgstr ""
534
 
535
- #: includes/admin/builder/class-builder.php:359
536
  #: includes/class-conditional-logic-core.php:429
537
  msgid "-- Select Choice --"
538
  msgstr ""
539
 
540
- #: includes/admin/builder/class-builder.php:392
541
  msgid "Countries"
542
  msgstr ""
543
 
544
- #: includes/admin/builder/class-builder.php:396
545
  msgid "Countries Postal Code"
546
  msgstr ""
547
 
548
- #: includes/admin/builder/class-builder.php:400
549
  msgid "States"
550
  msgstr ""
551
 
552
- #: includes/admin/builder/class-builder.php:404
553
  msgid "States Postal Code"
554
  msgstr ""
555
 
556
- #: includes/admin/builder/class-builder.php:408
557
  msgid "Months"
558
  msgstr ""
559
 
560
- #: includes/admin/builder/class-builder.php:412
561
  msgid "Days"
562
  msgstr ""
563
 
564
- #: includes/admin/builder/class-builder.php:457
565
  #: includes/admin/class-welcome.php:114
566
  msgid "Sullie the WPForms mascot"
567
  msgstr ""
568
 
569
- #: includes/admin/builder/class-builder.php:465
570
  msgid "Now editing"
571
  msgstr ""
572
 
573
- #: includes/admin/builder/class-builder.php:476
574
  msgid "Embed Form"
575
  msgstr ""
576
 
577
- #: includes/admin/builder/class-builder.php:478
578
  msgid "Embed"
579
  msgstr ""
580
 
581
- #: includes/admin/builder/class-builder.php:481
582
  msgid "Save Form"
583
  msgstr ""
584
 
@@ -964,9 +970,9 @@ msgid ""
964
  "a>?"
965
  msgstr ""
966
 
967
- #. #-#-#-#-# wpforms.pot (WPForms 1.4.4) #-#-#-#-#
968
  #. Plugin Name of the plugin/theme
969
- #. #-#-#-#-# wpforms.pot (WPForms 1.4.4) #-#-#-#-#
970
  #. Author of the plugin/theme
971
  #: includes/admin/class-menu.php:39 includes/admin/class-menu.php:40
972
  #: includes/admin/class-menu.php:51 includes/admin/class-menu.php:103
@@ -5888,9 +5894,9 @@ msgstr ""
5888
  msgid "Please deactivate WPForms Lite before activating WPForms."
5889
  msgstr ""
5890
 
5891
- #. #-#-#-#-# wpforms.pot (WPForms 1.4.4) #-#-#-#-#
5892
  #. Plugin URI of the plugin/theme
5893
- #. #-#-#-#-# wpforms.pot (WPForms 1.4.4) #-#-#-#-#
5894
  #. Author URI of the plugin/theme
5895
  msgid "https://wpforms.com"
5896
  msgstr ""
2
  # This file is distributed under the same license as the WPForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPForms 1.4.4.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms\n"
7
+ "POT-Creation-Date: 2018-02-13 17:23:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
33
  msgid "Install Addon"
34
  msgstr ""
35
 
36
+ #: includes/admin/admin.php:134 includes/admin/builder/class-builder.php:317
37
  #: includes/admin/class-editor.php:109
38
  #: pro/includes/admin/entries/class-entries-single.php:608
39
  msgid "Cancel"
40
  msgstr ""
41
 
42
+ #: includes/admin/admin.php:135 includes/admin/builder/class-builder.php:319
43
  #: includes/admin/class-editor.php:72 includes/class-preview.php:161
44
  msgid "Close"
45
  msgstr ""
102
  msgid "Are you sure you want to duplicate this form?"
103
  msgstr ""
104
 
105
+ #: includes/admin/admin.php:149 includes/admin/builder/class-builder.php:327
106
  msgid "Heads up!"
107
  msgstr ""
108
 
110
  msgid "Please select at least one form to import."
111
  msgstr ""
112
 
113
+ #: includes/admin/admin.php:153 includes/admin/builder/class-builder.php:318
114
  msgid "OK"
115
  msgstr ""
116
 
163
  "\"noopener noreferrer\">Read more</a> for additional information."
164
  msgstr ""
165
 
166
+ #: includes/admin/admin.php:374
167
+ msgid ""
168
+ "<em><strong>Please Note:</strong> After April 2018, WPForms will be "
169
+ "deactivated if not further action is taken.</em>"
170
+ msgstr ""
171
+
172
+ #: includes/admin/admin.php:396
173
  msgid "Thanks for your interest in WPForms Pro!"
174
  msgstr ""
175
 
176
  #. translators: %s - WPForms.com contact page URL.
177
+ #: includes/admin/admin.php:400
178
  msgid ""
179
  "If you have any questions or issues just <a href=\"%s\" target=\"_blank\" "
180
  "rel=\"noopener noreferrer\">let us know</a>."
181
  msgstr ""
182
 
183
+ #: includes/admin/admin.php:414
184
  msgid ""
185
  "After purchasing WPForms Pro, you'll need to <strong>download and install "
186
  "the Pro version of the plugin</strong>, and then <strong>remove the free "
187
  "plugin</strong>."
188
  msgstr ""
189
 
190
+ #: includes/admin/admin.php:419
191
  msgid "(Don't worry, all your forms and settings will be preserved.)"
192
  msgstr ""
193
 
194
  #. translators: %s - WPForms.com upgrade from Lite to paid docs page URL.
195
+ #: includes/admin/admin.php:425
196
  msgid ""
197
  "Check out <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">our "
198
  "documentation</a> for step-by-step instructions."
234
  msgid "taxonomy"
235
  msgstr ""
236
 
237
+ #: includes/admin/builder/class-builder.php:304
238
  #: includes/class-conditional-logic-core.php:449
239
  msgid "AND"
240
  msgstr ""
241
 
242
+ #: includes/admin/builder/class-builder.php:306
243
  msgid "Add New Choices"
244
  msgstr ""
245
 
246
+ #: includes/admin/builder/class-builder.php:307
247
  #: includes/fields/class-base.php:363
248
  msgid "Bulk Add"
249
  msgstr ""
250
 
251
+ #: includes/admin/builder/class-builder.php:308
252
  msgid "Hide Bulk Add"
253
  msgstr ""
254
 
255
+ #: includes/admin/builder/class-builder.php:309
256
  msgid "Add Choices (one per line)"
257
  msgstr ""
258
 
259
+ #: includes/admin/builder/class-builder.php:310
260
  msgid ""
261
  "Blue\n"
262
  "Red\n"
263
  "Green"
264
  msgstr ""
265
 
266
+ #: includes/admin/builder/class-builder.php:311
267
  msgid "Show presets"
268
  msgstr ""
269
 
270
+ #: includes/admin/builder/class-builder.php:312
271
  msgid "Hide presets"
272
  msgstr ""
273
 
274
+ #: includes/admin/builder/class-builder.php:316
275
  msgid ""
276
  "The {source} {type} contains over {limit} items ({total}). This may make the "
277
  "field difficult for your visitors to use and/or cause the form to be slow."
278
  msgstr ""
279
 
280
+ #: includes/admin/builder/class-builder.php:320
281
  msgid ""
282
  "Due to form changes, conditional logic rules have been removed or updated:"
283
  msgstr ""
284
 
285
+ #: includes/admin/builder/class-builder.php:321
286
  msgid ""
287
  "Are you sure you want to disable conditional logic? This will remove the "
288
  "rules for this field or setting."
289
  msgstr ""
290
 
291
+ #: includes/admin/builder/class-builder.php:322
292
  #: pro/includes/admin/entries/class-entries-list-table.php:221
293
  #: pro/includes/admin/entries/class-entries-list-table.php:232
294
  #: pro/includes/admin/entries/class-entries-list-table.php:709
297
  msgid "Field"
298
  msgstr ""
299
 
300
+ #: includes/admin/builder/class-builder.php:323
301
  msgid "Field Locked"
302
  msgstr ""
303
 
304
+ #: includes/admin/builder/class-builder.php:324
305
  msgid "This field cannot be deleted or duplicated."
306
  msgstr ""
307
 
308
+ #: includes/admin/builder/class-builder.php:325
309
  msgid "Available Fields"
310
  msgstr ""
311
 
312
+ #: includes/admin/builder/class-builder.php:326
313
  msgid "No fields available"
314
  msgstr ""
315
 
316
+ #: includes/admin/builder/class-builder.php:329
317
  msgid "No email fields"
318
  msgstr ""
319
 
320
+ #: includes/admin/builder/class-builder.php:330
321
  msgid "Are you sure you want to delete this notification?"
322
  msgstr ""
323
 
324
+ #: includes/admin/builder/class-builder.php:331
325
  msgid "Enter a notification name"
326
  msgstr ""
327
 
328
+ #: includes/admin/builder/class-builder.php:332
329
  msgid "Eg: User Confirmation"
330
  msgstr ""
331
 
332
+ #: includes/admin/builder/class-builder.php:333
333
  msgid "You must provide a notification name"
334
  msgstr ""
335
 
336
+ #: includes/admin/builder/class-builder.php:334
337
  msgid ""
338
  "Form must contain one notification. To disable all notifications use the "
339
  "Notifications dropdown setting."
340
  msgstr ""
341
 
342
+ #: includes/admin/builder/class-builder.php:335 lite/wpforms-lite.php:110
343
  #: pro/wpforms-pro.php:435
344
  msgid "Default Notification"
345
  msgstr ""
346
 
347
+ #: includes/admin/builder/class-builder.php:336
348
+ #: includes/admin/builder/class-builder.php:507
349
  msgid "Save"
350
  msgstr ""
351
 
352
+ #: includes/admin/builder/class-builder.php:337
353
  msgid "Saving ..."
354
  msgstr ""
355
 
356
+ #: includes/admin/builder/class-builder.php:338
357
  msgid "Saved!"
358
  msgstr ""
359
 
360
+ #: includes/admin/builder/class-builder.php:339
361
  msgid "Save and Exit"
362
  msgstr ""
363
 
364
+ #: includes/admin/builder/class-builder.php:341
365
  #: includes/fields/class-base.php:550
366
  msgid "Show Layouts"
367
  msgstr ""
368
 
369
+ #: includes/admin/builder/class-builder.php:342
370
  msgid "Hide Layouts"
371
  msgstr ""
372
 
373
+ #: includes/admin/builder/class-builder.php:343
374
  msgid "Select your layout"
375
  msgstr ""
376
 
377
+ #: includes/admin/builder/class-builder.php:344
378
  msgid "Select your column"
379
  msgstr ""
380
 
381
+ #: includes/admin/builder/class-builder.php:345
382
+ #: includes/admin/builder/class-builder.php:466
383
  msgid "Loading"
384
  msgstr ""
385
 
386
+ #: includes/admin/builder/class-builder.php:351
387
  msgid "Use Template"
388
  msgstr ""
389
 
390
+ #: includes/admin/builder/class-builder.php:352
391
  msgid ""
392
  "Changing templates on an existing form will DELETE existing form fields. Are "
393
  "you sure you want apply the new template?"
394
  msgstr ""
395
 
396
+ #: includes/admin/builder/class-builder.php:353
397
  msgid ""
398
  "You are almost done. To embed this form on your site, please paste the "
399
  "following shortcode inside a post or page."
400
  msgstr ""
401
 
402
+ #: includes/admin/builder/class-builder.php:354
403
  msgid "Or you can follow the instructions in this video."
404
  msgstr ""
405
 
406
+ #: includes/admin/builder/class-builder.php:355
407
+ #: includes/admin/builder/class-builder.php:512
408
  msgid "Exit"
409
  msgstr ""
410
 
411
+ #: includes/admin/builder/class-builder.php:357
412
  msgid "If you exit without saving, your changes will be lost."
413
  msgstr ""
414
 
415
+ #: includes/admin/builder/class-builder.php:358
416
  msgid "Are you sure you want to delete this field?"
417
  msgstr ""
418
 
419
+ #: includes/admin/builder/class-builder.php:359
420
  msgid "Are you sure you want to duplicate this field?"
421
  msgstr ""
422
 
423
+ #: includes/admin/builder/class-builder.php:360
424
  msgid "(copy)"
425
  msgstr ""
426
 
427
+ #: includes/admin/builder/class-builder.php:361
428
  msgid "Please enter a form name."
429
  msgstr ""
430
 
431
+ #: includes/admin/builder/class-builder.php:362
432
  msgid "This item must contain at least one choice."
433
  msgstr ""
434
 
435
+ #: includes/admin/builder/class-builder.php:363
436
  #: includes/fields/class-base.php:253 includes/fields/class-base.php:599
437
  #: lite/wpforms-lite.php:101 pro/wpforms-pro.php:428
438
  msgid "Off"
439
  msgstr ""
440
 
441
+ #: includes/admin/builder/class-builder.php:364
442
  #: includes/fields/class-base.php:253 lite/wpforms-lite.php:100
443
  #: pro/wpforms-pro.php:427
444
  msgid "On"
445
  msgstr ""
446
 
447
+ #: includes/admin/builder/class-builder.php:365
448
  msgid "or"
449
  msgstr ""
450
 
451
+ #: includes/admin/builder/class-builder.php:366
452
  #: includes/admin/class-am-deactivation-survey.php:307
453
  #: includes/templates/class-suggestion.php:61
454
  msgid "Other"
455
  msgstr ""
456
 
457
+ #: includes/admin/builder/class-builder.php:367
458
  #: includes/class-conditional-logic-core.php:372
459
  #: pro/includes/admin/entries/class-entries-list-table.php:727
460
  msgid "is"
461
  msgstr ""
462
 
463
+ #: includes/admin/builder/class-builder.php:368
464
  #: includes/class-conditional-logic-core.php:373
465
  #: pro/includes/admin/entries/class-entries-list-table.php:728
466
  msgid "is not"
467
  msgstr ""
468
 
469
+ #: includes/admin/builder/class-builder.php:369
470
  #: includes/class-conditional-logic-core.php:374
471
  msgid "empty"
472
  msgstr ""
473
 
474
+ #: includes/admin/builder/class-builder.php:370
475
  #: includes/class-conditional-logic-core.php:375
476
  msgid "not empty"
477
  msgstr ""
478
 
479
+ #: includes/admin/builder/class-builder.php:371
480
  #: includes/class-conditional-logic-core.php:380
481
  #: pro/includes/admin/entries/class-entries-list-table.php:725
482
  msgid "contains"
483
  msgstr ""
484
 
485
+ #: includes/admin/builder/class-builder.php:372
486
  #: includes/class-conditional-logic-core.php:381
487
  #: pro/includes/admin/entries/class-entries-list-table.php:726
488
  msgid "does not contain"
489
  msgstr ""
490
 
491
+ #: includes/admin/builder/class-builder.php:373
492
  #: includes/class-conditional-logic-core.php:382
493
  msgid "starts with"
494
  msgstr ""
495
 
496
+ #: includes/admin/builder/class-builder.php:374
497
  #: includes/class-conditional-logic-core.php:383
498
  msgid "ends with"
499
  msgstr ""
500
 
501
+ #: includes/admin/builder/class-builder.php:375
502
  msgid ""
503
  "Form entries must be stored to accept payments. Please enable saving form "
504
  "entries in the General settings first."
505
  msgstr ""
506
 
507
+ #: includes/admin/builder/class-builder.php:376
508
  #: pro/includes/fields/class-page-break.php:199
509
  #: pro/includes/fields/class-page-break.php:521
510
  msgid "Previous"
511
  msgstr ""
512
 
513
+ #: includes/admin/builder/class-builder.php:377
514
  #: includes/class-conditional-logic-core.php:449
515
  msgid "Create new rule"
516
  msgstr ""
517
 
518
+ #: includes/admin/builder/class-builder.php:378
519
  msgid "Add new group"
520
  msgstr ""
521
 
522
+ #: includes/admin/builder/class-builder.php:379
523
  #: includes/class-conditional-logic-core.php:450
524
  msgid "Delete rule"
525
  msgstr ""
526
 
527
+ #: includes/admin/builder/class-builder.php:381
528
  #: includes/admin/builder/functions.php:255 includes/fields/class-base.php:496
529
  msgid "Show Smart Tags"
530
  msgstr ""
531
 
532
+ #: includes/admin/builder/class-builder.php:382
533
  msgid "Hide Smart Tags"
534
  msgstr ""
535
 
536
+ #: includes/admin/builder/class-builder.php:383
537
  #: includes/class-conditional-logic-core.php:331
538
  msgid "-- Select Field --"
539
  msgstr ""
540
 
541
+ #: includes/admin/builder/class-builder.php:384
542
  #: includes/class-conditional-logic-core.php:429
543
  msgid "-- Select Choice --"
544
  msgstr ""
545
 
546
+ #: includes/admin/builder/class-builder.php:417
547
  msgid "Countries"
548
  msgstr ""
549
 
550
+ #: includes/admin/builder/class-builder.php:421
551
  msgid "Countries Postal Code"
552
  msgstr ""
553
 
554
+ #: includes/admin/builder/class-builder.php:425
555
  msgid "States"
556
  msgstr ""
557
 
558
+ #: includes/admin/builder/class-builder.php:429
559
  msgid "States Postal Code"
560
  msgstr ""
561
 
562
+ #: includes/admin/builder/class-builder.php:433
563
  msgid "Months"
564
  msgstr ""
565
 
566
+ #: includes/admin/builder/class-builder.php:437
567
  msgid "Days"
568
  msgstr ""
569
 
570
+ #: includes/admin/builder/class-builder.php:481
571
  #: includes/admin/class-welcome.php:114
572
  msgid "Sullie the WPForms mascot"
573
  msgstr ""
574
 
575
+ #: includes/admin/builder/class-builder.php:489
576
  msgid "Now editing"
577
  msgstr ""
578
 
579
+ #: includes/admin/builder/class-builder.php:500
580
  msgid "Embed Form"
581
  msgstr ""
582
 
583
+ #: includes/admin/builder/class-builder.php:502
584
  msgid "Embed"
585
  msgstr ""
586
 
587
+ #: includes/admin/builder/class-builder.php:505
588
  msgid "Save Form"
589
  msgstr ""
590
 
970
  "a>?"
971
  msgstr ""
972
 
973
+ #. #-#-#-#-# wpforms.pot (WPForms 1.4.4.1) #-#-#-#-#
974
  #. Plugin Name of the plugin/theme
975
+ #. #-#-#-#-# wpforms.pot (WPForms 1.4.4.1) #-#-#-#-#
976
  #. Author of the plugin/theme
977
  #: includes/admin/class-menu.php:39 includes/admin/class-menu.php:40
978
  #: includes/admin/class-menu.php:51 includes/admin/class-menu.php:103
5894
  msgid "Please deactivate WPForms Lite before activating WPForms."
5895
  msgstr ""
5896
 
5897
+ #. #-#-#-#-# wpforms.pot (WPForms 1.4.4.1) #-#-#-#-#
5898
  #. Plugin URI of the plugin/theme
5899
+ #. #-#-#-#-# wpforms.pot (WPForms 1.4.4.1) #-#-#-#-#
5900
  #. Author URI of the plugin/theme
5901
  msgid "https://wpforms.com"
5902
  msgstr ""
readme.txt CHANGED
@@ -210,6 +210,13 @@ Syed Balkhi
210
 
211
  == Changelog ==
212
 
 
 
 
 
 
 
 
213
  = 1.4.4 =
214
  - Added: Advanced setting for Multiple Choice and Checkbox fields to randomize choices
215
  - Changed: Admin menu icons now uses SVG instead of custom font icon
210
 
211
  == Changelog ==
212
 
213
+ = 1.4.4.1 =
214
+ - Changed: Textdomain loading to a later priority.
215
+ - Changed: Allow the `WPForms_Builder` class to be accessible.
216
+ - Changed: Move the confirmation message `wpautop` to an earlier priority to not conflict with content added using filters.
217
+ - Fixed: Form builder templates area not aligning correctly in some browsers.
218
+ - Fixed: Incorrect permissions check for annoucements feed.
219
+
220
  = 1.4.4 =
221
  - Added: Advanced setting for Multiple Choice and Checkbox fields to randomize choices
222
  - Changed: Admin menu icons now uses SVG instead of custom font icon
wpforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
- * Version: 1.4.4
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
@@ -92,7 +92,7 @@ if ( class_exists( 'WPForms' ) ) {
92
  *
93
  * @var string
94
  */
95
- public $version = '1.4.4';
96
 
97
  /**
98
  * The form data handler instance.
@@ -209,17 +209,17 @@ if ( class_exists( 'WPForms' ) ) {
209
 
210
  self::$instance = new WPForms;
211
  self::$instance->constants();
212
- self::$instance->load_textdomain();
213
  self::$instance->conditional_logic_addon_check();
214
  self::$instance->includes();
215
 
216
- // Load Pro or Lite specific files
217
  if ( self::$instance->pro ) {
218
  require_once WPFORMS_PLUGIN_DIR . 'pro/wpforms-pro.php';
219
  } else {
220
  require_once WPFORMS_PLUGIN_DIR . 'lite/wpforms-lite.php';
221
  }
222
 
 
223
  add_action( 'plugins_loaded', array( self::$instance, 'objects' ), 10 );
224
  }
225
 
@@ -283,8 +283,8 @@ if ( class_exists( 'WPForms' ) ) {
283
  if ( function_exists( 'wpforms_conditional_logic' ) ) {
284
 
285
  // Load core files needed to activate deactivate_plugins().
286
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
287
- require_once( ABSPATH . 'wp-includes/pluggable.php' );
288
 
289
  // Deactivate Conditional Logic addon.
290
  deactivate_plugins( 'wpforms-conditional-logic/wpforms-conditional-logic.php' );
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
+ * Version: 1.4.4.1
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
92
  *
93
  * @var string
94
  */
95
+ public $version = '1.4.4.1';
96
 
97
  /**
98
  * The form data handler instance.
209
 
210
  self::$instance = new WPForms;
211
  self::$instance->constants();
 
212
  self::$instance->conditional_logic_addon_check();
213
  self::$instance->includes();
214
 
215
+ // Load Pro or Lite specific files.
216
  if ( self::$instance->pro ) {
217
  require_once WPFORMS_PLUGIN_DIR . 'pro/wpforms-pro.php';
218
  } else {
219
  require_once WPFORMS_PLUGIN_DIR . 'lite/wpforms-lite.php';
220
  }
221
 
222
+ add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ), 10 );
223
  add_action( 'plugins_loaded', array( self::$instance, 'objects' ), 10 );
224
  }
225
 
283
  if ( function_exists( 'wpforms_conditional_logic' ) ) {
284
 
285
  // Load core files needed to activate deactivate_plugins().
286
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
287
+ require_once ABSPATH . 'wp-includes/pluggable.php';
288
 
289
  // Deactivate Conditional Logic addon.
290
  deactivate_plugins( 'wpforms-conditional-logic/wpforms-conditional-logic.php' );