File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
* Fixed: Error when attempting to download export files from Edit menu.
9
9
* Fixed: Issue loading Freemius string overrides too early. (PRO)
10
10
* Fixed: Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
11
+ * Fixed: Import error when attempting to completely uninstall the plugin,
11
12
12
13
## 3.6.1 (07 Nov 2023)
13
14
* Fixed: Issue accessing fields on Snippets class.
Original file line number Diff line number Diff line change 9
9
10
10
namespace Code_Snippets \Uninstall ;
11
11
12
- use const Code_Snippets \Settings \OPTION_NAME ;
13
-
14
12
/**
15
13
* Determine whether the option for allowing a complete uninstallation is enabled.
16
14
*
@@ -24,7 +22,7 @@ function complete_uninstall_enabled(): bool {
24
22
$ unified = empty ( $ menu_perms ['snippets_settings ' ] );
25
23
}
26
24
27
- $ settings = $ unified ? get_site_option ( OPTION_NAME ) : get_option ( OPTION_NAME );
25
+ $ settings = $ unified ? get_site_option ( ' code_snippets_settings ' ) : get_option ( ' code_snippets_settings ' );
28
26
29
27
return isset ( $ settings ['general ' ]['complete_uninstall ' ] ) && $ settings ['general ' ]['complete_uninstall ' ];
30
28
}
@@ -41,7 +39,7 @@ function uninstall_current_site() {
41
39
42
40
delete_option ( 'code_snippets_version ' );
43
41
delete_option ( 'recently_activated_snippets ' );
44
- delete_option ( OPTION_NAME );
42
+ delete_option ( ' code_snippets_settings ' );
45
43
}
46
44
47
45
/**
You can’t perform that action at this time.
0 commit comments