updated options to make them not automatically loaded when added

This commit is contained in:
asus
2024-03-25 15:16:19 +01:00
parent 6ec621a20b
commit 4036f4300d
10 changed files with 168 additions and 44 deletions

View File

@@ -58,7 +58,7 @@ class Fbpatch {
*/
$raw_patches_option = get_option(self::$_patches['_name']);
if (false === $raw_patches_option) {
add_option(self::$_patches['_name']);
add_option(self::$_patches['_name'], '', '', 'no');
}
$patches_option = unserialize($raw_patches_option);
if (empty($patches_option)) {