Skip to content

Commit a120c89

Browse files
committed
minor fix on uninstall.php, add changeset
1 parent 080b562 commit a120c89

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tall-wasps-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wpengine/hwp-previews-wordpress-plugin": patch
3+
---
4+
5+
Add optional data cleanup on uninstall via HWP_PREVIEWS_UNINSTALL_PLUGIN constant

plugins/hwp-previews/uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// Only proceed if the uninstall constant is defined.
1919
if ( ! defined( 'HWP_PREVIEWS_UNINSTALL_PLUGIN' ) || ! HWP_PREVIEWS_UNINSTALL_PLUGIN ) {
20-
exit;
20+
return;
2121
}
2222

2323
// Define constants if not already defined.

0 commit comments

Comments
 (0)