Skip to content

Commit 5a87264

Browse files
delay calling MC4WP_Ninja_Forms_Action::get_list_settings until init hook
1 parent 2ff50e4 commit 5a87264

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

integrations/ninja-forms/class-action.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ public function __construct()
5757

5858
add_action('wp_ajax_nf_' . $this->_name . '_get_lists', [$this, '_get_lists']);
5959
add_action('init', [$this, 'translate_props']);
60-
61-
62-
$this->get_list_settings();
60+
add_action('init', [$this, 'get_list_settings']);
6361
}
6462

6563
public function translate_props()
@@ -147,7 +145,7 @@ private function get_lists()
147145
return $return;
148146
}
149147

150-
private function get_list_settings()
148+
public function get_list_settings()
151149
{
152150
$label_defaults = [
153151
'list' => 'List',

0 commit comments

Comments
 (0)