| @@ -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 | } |