From a41b3e7618d707a5db65be0fd29d7aa03b118685 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Thu, 8 Jan 2026 13:09:33 -0400 Subject: [PATCH 1/3] Stop overwriting all inbox items with onboarding message --- .../FrmOnboardingWizardController.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/classes/controllers/FrmOnboardingWizardController.php b/classes/controllers/FrmOnboardingWizardController.php index 574265c8aa..afd4ab251c 100644 --- a/classes/controllers/FrmOnboardingWizardController.php +++ b/classes/controllers/FrmOnboardingWizardController.php @@ -468,16 +468,16 @@ public static function mark_onboarding_as_skipped() { public static function add_wizard_to_floating_links( $inbox_messages ) { $message = __( 'Welcome to Formidable Forms! Click here to run the Onboarding Wizard and it will guide you through the basic settings and get you started in 2 minutes.', 'formidable' ); - return array( - 'onboarding_wizard' => array( - 'subject' => esc_html__( 'Begin With Ease!', 'formidable' ), - 'message' => esc_html( $message ), - 'slidein' => esc_html( $message ), - 'cta' => '' . esc_html__( 'Begin Setup', 'formidable' ) . '', - 'created' => time(), - 'key' => 'onboarding_wizard', - ), + $inbox_messages['onboarding_wizard'] = array( + 'subject' => esc_html__( 'Begin With Ease!', 'formidable' ), + 'message' => esc_html( $message ), + 'slidein' => esc_html( $message ), + 'cta' => '' . esc_html__( 'Begin Setup', 'formidable' ) . '', + 'created' => time(), + 'key' => 'onboarding_wizard', ); + + return $inbox_messages; } /** From ac42cced575a89bc6eca35bbd41b3ce320dcac27 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Thu, 8 Jan 2026 13:31:12 -0400 Subject: [PATCH 2/3] Try to make the inbox messages setting safer --- classes/controllers/FrmOnboardingWizardController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/controllers/FrmOnboardingWizardController.php b/classes/controllers/FrmOnboardingWizardController.php index afd4ab251c..0e59b3919a 100644 --- a/classes/controllers/FrmOnboardingWizardController.php +++ b/classes/controllers/FrmOnboardingWizardController.php @@ -461,13 +461,17 @@ public static function mark_onboarding_as_skipped() { * * @since 6.9 * - * @param array $inbox_messages The array of existing inbox messages. + * @param mixed $inbox_messages The inbox option data. * * @return array Configuration for the onboarding wizard slide-in notification. */ public static function add_wizard_to_floating_links( $inbox_messages ) { $message = __( 'Welcome to Formidable Forms! Click here to run the Onboarding Wizard and it will guide you through the basic settings and get you started in 2 minutes.', 'formidable' ); + if ( ! is_array( $inbox_messages ) ) { + $inbox_messages = array(); + } + $inbox_messages['onboarding_wizard'] = array( 'subject' => esc_html__( 'Begin With Ease!', 'formidable' ), 'message' => esc_html( $message ), From 3d44311dac084e8d0874d5b2afbc0a080eac7516 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Thu, 8 Jan 2026 13:32:37 -0400 Subject: [PATCH 3/3] Improve comment --- classes/controllers/FrmOnboardingWizardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controllers/FrmOnboardingWizardController.php b/classes/controllers/FrmOnboardingWizardController.php index 0e59b3919a..f4e132c3db 100644 --- a/classes/controllers/FrmOnboardingWizardController.php +++ b/classes/controllers/FrmOnboardingWizardController.php @@ -461,7 +461,7 @@ public static function mark_onboarding_as_skipped() { * * @since 6.9 * - * @param mixed $inbox_messages The inbox option data. + * @param mixed $inbox_messages The inbox option data. An array of existing inbox messages if there is valid data set in the option. * * @return array Configuration for the onboarding wizard slide-in notification. */