|
8 | 8 | namespace Activitypub;
|
9 | 9 |
|
10 | 10 | use Exception;
|
| 11 | +use Activitypub\Options; |
11 | 12 | use Activitypub\Collection\Actors;
|
12 | 13 | use Activitypub\Collection\Outbox;
|
13 | 14 | use Activitypub\Collection\Followers;
|
@@ -90,45 +91,7 @@ public static function uninstall() {
|
90 | 91 | \remove_filter( 'pre_wp_update_comment_count_now', array( Comment::class, 'pre_wp_update_comment_count_now' ) );
|
91 | 92 | Migration::update_comment_counts( 2000 );
|
92 | 93 |
|
93 |
| - \delete_option( 'activitypub_actor_mode' ); |
94 |
| - \delete_option( 'activitypub_allow_likes' ); |
95 |
| - \delete_option( 'activitypub_allow_replies' ); |
96 |
| - \delete_option( 'activitypub_attribution_domains' ); |
97 |
| - \delete_option( 'activitypub_authorized_fetch' ); |
98 |
| - \delete_option( 'activitypub_application_user_private_key' ); |
99 |
| - \delete_option( 'activitypub_application_user_public_key' ); |
100 |
| - \delete_option( 'activitypub_blog_user_also_known_as' ); |
101 |
| - \delete_option( 'activitypub_blog_user_mailer_new_dm' ); |
102 |
| - \delete_option( 'activitypub_blog_user_mailer_new_follower' ); |
103 |
| - \delete_option( 'activitypub_blog_user_mailer_new_mention' ); |
104 |
| - \delete_option( 'activitypub_blog_user_moved_to' ); |
105 |
| - \delete_option( 'activitypub_blog_user_private_key' ); |
106 |
| - \delete_option( 'activitypub_blog_user_public_key' ); |
107 |
| - \delete_option( 'activitypub_blog_description' ); |
108 |
| - \delete_option( 'activitypub_blog_identifier' ); |
109 |
| - \delete_option( 'activitypub_checklist_blocks_visited' ); |
110 |
| - \delete_option( 'activitypub_checklist_fediverse_intro_visited' ); |
111 |
| - \delete_option( 'activitypub_checklist_health_check_issues' ); |
112 |
| - \delete_option( 'activitypub_checklist_profile_setup_visited' ); |
113 |
| - \delete_option( 'activitypub_checklist_settings_visited' ); |
114 |
| - \delete_option( 'activitypub_content_negotiation' ); |
115 |
| - \delete_option( 'activitypub_custom_post_content' ); |
116 |
| - \delete_option( 'activitypub_db_version' ); |
117 |
| - \delete_option( 'activitypub_default_extra_fields' ); |
118 |
| - \delete_option( 'activitypub_enable_blog_user' ); |
119 |
| - \delete_option( 'activitypub_enable_users' ); |
120 |
| - \delete_option( 'activitypub_header_image' ); |
121 |
| - \delete_option( 'activitypub_last_post_with_permalink_as_id' ); |
122 |
| - \delete_option( 'activitypub_max_image_attachments' ); |
123 |
| - \delete_option( 'activitypub_migration_lock' ); |
124 |
| - \delete_option( 'activitypub_object_type' ); |
125 |
| - \delete_option( 'activitypub_outbox_purge_days' ); |
126 |
| - \delete_option( 'activitypub_shared_inbox' ); |
127 |
| - \delete_option( 'activitypub_support_post_types' ); |
128 |
| - \delete_option( 'activitypub_use_hashtags' ); |
129 |
| - \delete_option( 'activitypub_use_opengraph' ); |
130 |
| - \delete_option( 'activitypub_use_permalink_as_id_for_blog' ); |
131 |
| - \delete_option( 'activitypub_vary_header' ); |
| 94 | + Options::delete(); |
132 | 95 | }
|
133 | 96 |
|
134 | 97 | /**
|
|
0 commit comments