Skip to content
This repository was archived by the owner on Aug 15, 2026. It is now read-only.

Commit 06f4a07

Browse files
Fix uninstall to drop entries table and correct transient name
The uninstall handler was missing the DROP TABLE for wp_packrelay_entries, leaving user data behind after deletion. Also fix the stale transient name from packrelay_wpforms_notice to packrelay_provider_notice. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 58380e7 commit 06f4a07

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

uninstall.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@
1212
exit;
1313
}
1414

15+
global $wpdb;
16+
17+
// Drop the custom entries table.
18+
$table_name = $wpdb->prefix . 'packrelay_entries';
19+
$wpdb->query( "DROP TABLE IF EXISTS {$table_name}" );
20+
1521
// Delete plugin settings.
1622
delete_option( 'packrelay_settings' );
1723

18-
// Delete any transients.
19-
delete_transient( 'packrelay_wpforms_notice' );
24+
// Delete any known transients.
25+
delete_transient( 'packrelay_provider_notice' );
2026

21-
// Clean up any packrelay_ transients from the database.
22-
global $wpdb;
27+
// Clean up any remaining packrelay_ transients from the database.
2328
$wpdb->query(
2429
$wpdb->prepare(
2530
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",

0 commit comments

Comments
 (0)