Skip to content

Post-3.0-stable: remove legacy data on uninstall #744

Description

@2ndkauboy

Tracking issue for deferred cleanup, from TODOs at src/Handlers/PluginStateChangeHandler.php:76 and :81.

While v3 is in beta we intentionally keep the legacy data on uninstall as a safety net. Once v3 is stable, the uninstall routine should also:

  • delete_option( 'antispam_bee' ) (the legacy options array)
  • delete the legacy comment meta: DELETE FROM {commentmeta} WHERE meta_key IN ('antispam_bee_iphash', 'antispam_bee_reason')

Both lines are currently commented out in maybe_remove_antispam_bee_data(). Do not enable before the stable 3.0 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv3This issue is for the new version (v3) of the plugin

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions