Skip to content

Commit 7b0edd5

Browse files
author
Benjamin Pick
committed
Fix: Make sure defines are available on uninstall
1 parent 5dc0b7b commit 7b0edd5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

init.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ function geoip_detect_add_privacy_policy_content() {
211211
* This function is called when the user clicks on "Remove" in the wp-admin
212212
*/
213213
function on_uninstall() {
214+
geoip_detect_defines();
215+
214216
$registry = DataSourceRegistry::getInstance();
215217
$registry->uninstall();
216218
}

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ If you use Maxmind "Automatic download" then you need to upgrade to this plugin
174174

175175
= 5.4.0 =
176176
* NEW: Infos can be added to a mail sent by WPForms (with Smart Tag `{geoip_detect2_user_info}`)
177+
* FIX: Remove Fatal Error on uninstall ("Undefined constand GEOIP_DETECT_DEBUG")
177178

178179
= 5.3.2 =
179180
* FIX: Some country codes such as "PT" were missing in the (deprecated) legacy API mapping.

0 commit comments

Comments
 (0)