| @@ -6,11 +6,13 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace Activitypub\Integration; |
| 9 | 9 | |
| 10 | +use Activitypub\Autoloader; | |
| 11 | + | |
| 10 | 12 | use function Activitypub\site_supports_blocks; |
| 11 | 13 | |
| 12 | -\Activitypub\Autoloader::register_path( __NAMESPACE__, __DIR__ ); | |
| 14 | +Autoloader::register_path( __NAMESPACE__, __DIR__ ); | |
| 13 | 15 | |
| 14 | 16 | /** |
| 15 | 17 | * Initialize the ActivityPub integrations. |
| 16 | 18 | */ |
| @@ -136,9 +138,9 @@ | ||
| 136 | 138 | * |
| 137 | 139 | * @see https://wordpress.org/plugins/seriously-simple-podcasting/ |
| 138 | 140 | */ |
| 139 | 141 | if ( \defined( 'SSP_VERSION' ) ) { |
| 140 | - add_filter( | |
| 142 | + \add_filter( | |
| 141 | 143 | 'activitypub_transformer', |
| 142 | 144 | static function ( $transformer, $data, $object_class ) { |
| 143 | 145 | if ( |
| 144 | 146 | 'WP_Post' === $object_class && |
| @@ -179,19 +181,8 @@ | ||
| 179 | 181 | * |
| 180 | 182 | * @see https://wordpress.org/plugins/webfinger/ |
| 181 | 183 | */ |
| 182 | 184 | Webfinger::init(); |
| 183 | - | |
| 184 | - /** | |
| 185 | - * Adds WP REST Cache support. | |
| 186 | - * | |
| 187 | - * This class handles the compatibility with the WP REST Cache plugin. | |
| 188 | - * | |
| 189 | - * @see https://wordpress.org/plugins/wp-rest-cache/ | |
| 190 | - */ | |
| 191 | - if ( \class_exists( 'WP_Rest_Cache_Plugin\Includes\Plugin' ) ) { | |
| 192 | - WP_Rest_Cache::init(); | |
| 193 | - } | |
| 194 | 185 | |
| 195 | 186 | /** |
| 196 | 187 | * Adds WPML Multilingual CMS (plugin) support. |
| 197 | 188 | * |