PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2
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/models/FrmFormAction.php +4 -3 6.56.2 View file →
@@ -34,10 +34,9 @@
34 34
35 35 /**
36 36 * Echo the settings update form
37 37 *
38 - * @param WP_Post $instance Current settings
39 - * @param array $args
38 + * @param array $instance Current settings
40 39 */
41 40 public function form( $instance, $args = array() ) {
42 41 echo '<p class="no-options-widget">' . esc_html__( 'There are no options for this action.', 'formidable' ) . '</p>';
43 42
@@ -202,8 +201,10 @@
202 201 public function get_field_id( $field_name ) {
203 202 return $field_name . '_' . $this->number;
204 203 }
205 204
205 + // Private Function. Don't worry about this.
206 +
206 207 /**
207 208 * @param int|string $number
208 209 * @return void
209 210 */
@@ -649,9 +650,9 @@
649 650 $action->post_content += $default_values;
650 651
651 652 foreach ( $default_values as $k => $vals ) {
652 653 if ( is_array( $vals ) && ! empty( $vals ) ) {
653 - if ( 'event' === $k && ! $this->action_options['force_event'] && ! empty( $action->post_content[ $k ] ) ) {
654 + if ( 'event' == $k && ! $this->action_options['force_event'] && ! empty( $action->post_content[ $k ] ) ) {
654 655 continue;
655 656 }
656 657 $action->post_content[ $k ] = wp_parse_args( $action->post_content[ $k ], $vals );
657 658 }