| @@ -34,9 +34,10 @@ | ||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Echo the settings update form |
| 37 | 37 | * |
| 38 | - * @param array $instance Current settings | |
| 38 | + * @param WP_Post $instance Current settings | |
| 39 | + * @param array $args | |
| 39 | 40 | */ |
| 40 | 41 | public function form( $instance, $args = array() ) { |
| 41 | 42 | echo '<p class="no-options-widget">' . esc_html__( 'There are no options for this action.', 'formidable' ) . '</p>'; |
| 42 | 43 | |
| @@ -648,9 +649,9 @@ | ||
| 648 | 649 | $action->post_content += $default_values; |
| 649 | 650 | |
| 650 | 651 | foreach ( $default_values as $k => $vals ) { |
| 651 | 652 | if ( is_array( $vals ) && ! empty( $vals ) ) { |
| 652 | - if ( 'event' == $k && ! $this->action_options['force_event'] && ! empty( $action->post_content[ $k ] ) ) { | |
| 653 | + if ( 'event' === $k && ! $this->action_options['force_event'] && ! empty( $action->post_content[ $k ] ) ) { | |
| 653 | 654 | continue; |
| 654 | 655 | } |
| 655 | 656 | $action->post_content[ $k ] = wp_parse_args( $action->post_content[ $k ], $vals ); |
| 656 | 657 | } |