diff --git a/CHANGELOG.md b/CHANGELOG.md index 550f8210c..791f7fe47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Comment counts get updated when the plugin is activated/deactivated/deleted * Added a filter to make custom comment types manageable in WP.com Calypso -* Cleanup of options, post meta, and user meta when the plugin is uninstalled +* Cleanup of option values when the plugin is uninstalled ### Changed diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index 9055a5080..4cdb8c310 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -88,20 +88,6 @@ public static function uninstall() { \remove_filter( 'pre_wp_update_comment_count_now', array( Comment::class, 'pre_wp_update_comment_count_now' ) ); Migration::update_comment_counts( 2000 ); - delete_metadata( 'user', 0, '_activitypub_user_identifier', '', true ); - delete_metadata( 'user', 0, 'activitypub_default_extra_fields', '', true ); - delete_metadata( 'user', 0, 'activitypub_followers', '', true ); - delete_metadata( 'user', 0, 'magic_sig_public_key', '', true ); - delete_metadata( 'user', 0, 'magic_sig_private_key', '', true ); - - delete_metadata( 'post', 0, '_activitypub_actor_json', '', true ); - delete_metadata( 'post', 0, '_activitypub_canonical_url', '', true ); - delete_metadata( 'post', 0, '_activitypub_errors', '', true ); - delete_metadata( 'post', 0, '_activitypub_inbox', '', true ); - delete_metadata( 'post', 0, '_activitypub_user_id', '', true ); - delete_metadata( 'post', 0, 'activitypub_content_warning', '', true ); - delete_metadata( 'post', 0, 'activitypub_content_visibility', '', true ); - delete_option( 'activitypub_actor_mode' ); delete_option( 'activitypub_attribution_domains' ); delete_option( 'activitypub_authorized_fetch' ); diff --git a/readme.txt b/readme.txt index 9c777caa1..2039256eb 100644 --- a/readme.txt +++ b/readme.txt @@ -154,7 +154,7 @@ For reasons of data protection, it is not possible to see the followers of other * Added: Comment counts get updated when the plugin is activated/deactivated/deleted * Added: A filter to make custom comment types manageable in WP.com Calypso -* Added: Cleanup of options, post meta, and user meta when the plugin is uninstalled +* Added: Cleanup of option values when the plugin is uninstalled * Changed: Hide ActivityPub post meta keys from the custom Fields UI * Changed: Bumped minimum required PHP version to 7.2 * Changed: Print `_activityPubOptions` in the `wp_footer` action on the frontend.