From 133de30b68fae8dc1b349640423cad714018bd7e Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 15 Jun 2023 11:44:50 +0200 Subject: [PATCH] remove wp-sweep filter, because post-types are not a problem --- activitypub.php | 11 -------- integration/class-wp-sweep.php | 50 ---------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 integration/class-wp-sweep.php diff --git a/activitypub.php b/activitypub.php index 8ca78f8..8f665fc 100644 --- a/activitypub.php +++ b/activitypub.php @@ -151,17 +151,6 @@ add_action( 0 ); -add_action( - 'plugins_loaded', - function() { - if ( defined( 'WP_SWEEP_VERSION' ) ) { - require_once \dirname( __FILE__ ) . '/integration/class-wp-sweep.php'; - Integration\Wp_Sweep::init(); - } - }, - 0 -); - /** * `get_plugin_data` wrapper * diff --git a/integration/class-wp-sweep.php b/integration/class-wp-sweep.php deleted file mode 100644 index 730edba..0000000 --- a/integration/class-wp-sweep.php +++ /dev/null @@ -1,50 +0,0 @@ - 'ids' ) ); - - $excluded_term_ids = array_merge( $excluded_term_ids, $followers ); - - return array_unique( $excluded_term_ids ); - } -}