We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69417c8 commit b5060d0Copy full SHA for b5060d0
src/FeaturedImage.php
@@ -12,6 +12,7 @@
12
use function filter_var;
13
use function get_site_option;
14
use function is_admin;
15
+use function update_site_option;
16
use const FILTER_VALIDATE_BOOLEAN;
17
18
/**
@@ -88,6 +89,10 @@ private function update(): void
88
89
return;
90
}
91
$options = get_site_option(self::OPTION_NAME, []);
92
+ if (empty($options)) {
93
+ update_site_option(self::OPTION_NAME . '_update', 1);
94
+ return;
95
+ }
96
foreach ($options as $option => $value) {
97
if (is_array($value)) {
98
continue;
0 commit comments