| @@ -43,9 +43,8 @@ | ||
| 43 | 43 | * @return void |
| 44 | 44 | */ |
| 45 | 45 | public static function register_actions() { |
| 46 | 46 | $action_classes = array( |
| 47 | - 'on_submit' => 'FrmOnSubmitAction', | |
| 48 | 47 | 'email' => 'FrmEmailAction', |
| 49 | 48 | 'wppost' => 'FrmDefPostAction', |
| 50 | 49 | 'register' => 'FrmDefRegAction', |
| 51 | 50 | 'paypal' => 'FrmDefPayPalAction', |
| @@ -244,11 +243,11 @@ | ||
| 244 | 243 | } |
| 245 | 244 | |
| 246 | 245 | // HTML to include on the icon. |
| 247 | 246 | $icon_atts = array(); |
| 248 | - if ( $action_control->action_options['color'] !== 'var(--primary-700)' ) { | |
| 247 | + if ( $action_control->action_options['color'] !== 'var(--primary-hover)' ) { | |
| 249 | 248 | $icon_atts = array( |
| 250 | - 'style' => '--primary-700:' . $action_control->action_options['color'], | |
| 249 | + 'style' => '--primary-hover:' . $action_control->action_options['color'], | |
| 251 | 250 | ); |
| 252 | 251 | } |
| 253 | 252 | |
| 254 | 253 | include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_action_icon.php'; |
| @@ -440,10 +439,8 @@ | ||
| 440 | 439 | } |
| 441 | 440 | $old_actions = array_diff( $old_actions, $new_actions ); |
| 442 | 441 | |
| 443 | 442 | self::delete_missing_actions( $old_actions ); |
| 444 | - | |
| 445 | - FrmOnSubmitHelper::save_on_submit_settings( $form_id ); | |
| 446 | 443 | } |
| 447 | 444 | |
| 448 | 445 | public static function delete_missing_actions( $old_actions ) { |
| 449 | 446 | if ( ! empty( $old_actions ) ) { |
| @@ -494,9 +491,9 @@ | ||
| 494 | 491 | } |
| 495 | 492 | |
| 496 | 493 | foreach ( $form_actions as $action ) { |
| 497 | 494 | |
| 498 | - $skip_this_action = ! in_array( $this_event, $action->post_content['event'], true ) || FrmOnSubmitAction::$slug === $action->post_excerpt; | |
| 495 | + $skip_this_action = ( ! in_array( $this_event, $action->post_content['event'] ) ); | |
| 499 | 496 | $skip_this_action = apply_filters( 'frm_skip_form_action', $skip_this_action, compact( 'action', 'entry', 'form', 'event' ) ); |
| 500 | 497 | if ( $skip_this_action ) { |
| 501 | 498 | continue; |
| 502 | 499 | } |