Skip to content

Commit 7e35173

Browse files
do not call parent constructor in Ninja Forms Action class because it calls gettext too early
1 parent 4416d0e commit 7e35173

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

integrations/ninja-forms/class-action.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use ParagonIE\Sodium\Core\Curve25519\Ge\P2;
4+
35
if (! defined('ABSPATH')) {
46
exit;
57
}
@@ -22,8 +24,6 @@ class MC4WP_Ninja_Forms_Action extends NF_Abstracts_Action
2224

2325
public function __construct()
2426
{
25-
parent::__construct();
26-
2727
$this->_settings['double_optin'] = array(
2828
'name' => 'double_optin',
2929
'type' => 'select',
@@ -64,6 +64,7 @@ public function __construct()
6464
add_action('wp_ajax_nf_' . $this->_name . '_get_lists', array($this, '_get_lists'));
6565
add_action('init', array($this, 'translate_props'));
6666

67+
6768
$this->get_list_settings();
6869
}
6970

0 commit comments

Comments
 (0)