Commit e978a191 authored by Eric Windham's avatar Eric Windham

fixes php 5.2 issues

parent a4ac8fc6
......@@ -48,12 +48,13 @@ class NF_FormBlock {
* */
wp_enqueue_script( 'ninja-forms-block' );
$forms = [];
$forms = array();
foreach( Ninja_Forms()->form()->get_forms() as $form ){
$forms[] = [
$forms[] = array (
'value' => $form->get_id(),
'label' => $form->get_setting( 'title' ),
];
);
}
wp_localize_script( 'ninja-forms-block', 'ninjaFormsBlock', array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment