PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.5.6
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.5.6
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/FrmFormActionsController.php +3 -6 6.45.5.6 View file →
@@ -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 }