From aab2ccbaf18f641d987231c29780a25d17ab41b5 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Mon, 11 Oct 2021 22:12:18 +0900 Subject: [PATCH] Ensure meta value is array Fixes #606 --- admin/includes/welcome-panel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/includes/welcome-panel.php b/admin/includes/welcome-panel.php index 43300827..072bf974 100644 --- a/admin/includes/welcome-panel.php +++ b/admin/includes/welcome-panel.php @@ -276,7 +276,7 @@ function wpcf7_welcome_panel_screen_settings( $screen_settings, $screen ) { return $screen_settings; } - $vers = get_user_meta( get_current_user_id(), + $vers = (array) get_user_meta( get_current_user_id(), 'wpcf7_hide_welcome_panel_on', true );