Skip to content

Commit ca97b48

Browse files
osbreadriaandotcom
authored andcommitted
Fix boolean value default retrieval
1 parent 3a7aacd commit ca97b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Setting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function get(string $key, $default = null)
2020

2121
public static function boolean(string $key, ?bool $default = null): ?bool
2222
{
23-
$value = get_option($key);
23+
$value = get_option($key, null);
2424

2525
if ($value === null || $value === '') {
2626
return $default;

0 commit comments

Comments
 (0)