Skip to content

Commit 13e82f6

Browse files
committed
Set default
1 parent 60228ec commit 13e82f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Widget_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ private function get_sidebar_widgets( $sidebar_id ) {
649649
$prepared_widget->name = $widget_name;
650650
$prepared_widget->id = $widget_id;
651651
$prepared_widget->position = $key + 1;
652-
$widget_options = get_option( 'widget_' . $widget_name );
652+
$widget_options = get_option( 'widget_' . $widget_name, [] );
653653
/**
654654
* @var array<string, mixed> $widget_options
655655
*/

0 commit comments

Comments
 (0)