Skip to content

Commit

Permalink
Ensure meta value is array
Browse files Browse the repository at this point in the history
Fixes #606
  • Loading branch information
takayukister committed Oct 11, 2021
1 parent b8b138c commit aab2ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/welcome-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit aab2ccb

Please sign in to comment.