Upload file uninstall.php via GUI

This commit is contained in:
2026-03-22 00:40:09 +01:00
parent 2adba16d29
commit 44672a61aa

View File

@@ -20,9 +20,12 @@ $tables = [
'forum_reactions', 'forum_reactions',
'forum_notifications', 'forum_notifications',
'forum_subscriptions', 'forum_subscriptions',
'forum_bookmarks', // ← fehlte: Lesezeichen
'forum_ignore_list', // ← Ignore/Block-Liste
'forum_invites', 'forum_invites',
'forum_thread_tags', 'forum_thread_tags',
'forum_tags', 'forum_tags',
'forum_prefixes', // ← fehlte: Thread-Präfixe
'forum_reports', 'forum_reports',
'forum_likes', 'forum_likes',
'forum_messages', 'forum_messages',
@@ -49,6 +52,7 @@ $options = [
'wbf_forum_page_id', 'wbf_forum_page_id',
'wbf_superadmin_email', 'wbf_superadmin_email',
'wbf_db_version', 'wbf_db_version',
'wbf_word_filter',
]; ];
foreach ( $options as $option ) { foreach ( $options as $option ) {
@@ -65,8 +69,9 @@ if ( is_multisite() ) {
// ── 3. Transients löschen ──────────────────────────────────────────────────── // ── 3. Transients löschen ────────────────────────────────────────────────────
delete_transient( 'wbf_activation_redirect' ); delete_transient( 'wbf_activation_redirect' );
delete_transient( 'wbf_stats_cache' ); delete_transient( 'wbf_stats_cache' );
delete_transient( 'wbf_update_check' );
// Alle wbf_* Transients per LIKE-Query entfernen // Alle wbf_* Transients per LIKE-Query entfernen (inkl. Update-Dismissed-Transients)
$wpdb->query( $wpdb->query(
"DELETE FROM `{$wpdb->options}` "DELETE FROM `{$wpdb->options}`
WHERE `option_name` LIKE '_transient_wbf_%' WHERE `option_name` LIKE '_transient_wbf_%'
@@ -75,6 +80,7 @@ $wpdb->query(
// ── 4. Geplante Cron-Jobs entfernen ────────────────────────────────────────── // ── 4. Geplante Cron-Jobs entfernen ──────────────────────────────────────────
wp_clear_scheduled_hook( 'wbf_check_expired_bans' ); wp_clear_scheduled_hook( 'wbf_check_expired_bans' );
wp_clear_scheduled_hook( 'wbf_check_for_updates' );
// ── 5. Forum-Seite löschen (vom Setup-Wizard erstellt) ─────────────────────── // ── 5. Forum-Seite löschen (vom Setup-Wizard erstellt) ───────────────────────
$forum_page_id = get_option( 'wbf_forum_page_id' ); $forum_page_id = get_option( 'wbf_forum_page_id' );