Skip to content

Commit

Permalink
do not call parent constructor in Ninja Forms Action class because it…
Browse files Browse the repository at this point in the history
… calls gettext too early
  • Loading branch information
dannyvankooten committed Jan 3, 2025
1 parent 4416d0e commit 7e35173
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrations/ninja-forms/class-action.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use ParagonIE\Sodium\Core\Curve25519\Ge\P2;

if (! defined('ABSPATH')) {
exit;
}
Expand All @@ -22,8 +24,6 @@ class MC4WP_Ninja_Forms_Action extends NF_Abstracts_Action

public function __construct()
{
parent::__construct();

$this->_settings['double_optin'] = array(
'name' => 'double_optin',
'type' => 'select',
Expand Down Expand Up @@ -64,6 +64,7 @@ public function __construct()
add_action('wp_ajax_nf_' . $this->_name . '_get_lists', array($this, '_get_lists'));
add_action('init', array($this, 'translate_props'));


$this->get_list_settings();
}

Expand Down

0 comments on commit 7e35173

Please sign in to comment.