PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.12
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.12
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmApplicationsController.php +3 -8 6.25.16.12 View file →
@@ -27,9 +27,9 @@
27 27 }
28 28
29 29 if ( ! isset( $slug ) ) {
30 30 $slug = 'formidable-applications';
31 - $callback = array( self::class, 'landing_page' );
31 + $callback = array( __CLASS__, 'landing_page' );
32 32 }
33 33
34 34 add_submenu_page( 'formidable', 'Formidable | ' . $label, $label, $cap, $slug, $callback );
35 35 }
@@ -130,9 +130,9 @@
130 130 }
131 131
132 132 FrmApplicationTemplate::init();
133 133
134 - return array_reduce( $applications, array( self::class, 'reduce_template' ), array() );
134 + return array_reduce( $applications, array( __CLASS__, 'reduce_template' ), array() );
135 135 }
136 136
137 137 /**
138 138 * @param array $total the accumulated array of reduced application data.
@@ -140,14 +140,9 @@
140 140 * @return array<array>
141 141 */
142 142 private static function reduce_template( $total, $current ) {
143 143 $template = new FrmApplicationTemplate( $current );
144 -
145 - $js_object = $template->as_js_object();
146 - if ( $js_object ) {
147 - $total[] = $js_object;
148 - }
149 -
144 + $total[] = $template->as_js_object();
150 145 return $total;
151 146 }
152 147
153 148 /**