| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | * and sites without block editor support. |
| 34 | 34 | * |
| 35 | 35 | * @see https://wordpress.org/plugins/classic-editor/ |
| 36 | 36 | */ |
| 37 | - if ( \class_exists( '\Classic_Editor' ) || \function_exists( 'classicpress_version' ) || ! site_supports_blocks() ) { | |
| 37 | + if ( class_exists( '\Classic_Editor' ) || ! site_supports_blocks() ) { | |
| 38 | 38 | Classic_Editor::init(); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| @@ -98,36 +98,8 @@ | ||
| 98 | 98 | * @see https://wordpress.org/plugins/opengraph/ |
| 99 | 99 | */ |
| 100 | 100 | if ( '1' === \get_option( 'activitypub_use_opengraph', '1' ) ) { |
| 101 | 101 | Opengraph::init(); |
| 102 | - } | |
| 103 | - | |
| 104 | - /** | |
| 105 | - * Adds Podlove Podcast Publisher support. | |
| 106 | - * | |
| 107 | - * This class handles the compatibility with Podlove Podcast Publisher. | |
| 108 | - * | |
| 109 | - * @see https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/ | |
| 110 | - */ | |
| 111 | - if ( \defined( 'Podlove\PLUGIN_FILE' ) ) { | |
| 112 | - // Enable ActivityPub support for the podcast post type. | |
| 113 | - \add_post_type_support( 'podcast', 'activitypub' ); | |
| 114 | - | |
| 115 | - \add_filter( | |
| 116 | - 'activitypub_transformer', | |
| 117 | - static function ( $transformer, $data, $object_class ) { | |
| 118 | - if ( | |
| 119 | - 'WP_Post' === $object_class && | |
| 120 | - 'podcast' === $data->post_type && | |
| 121 | - \Podlove\Model\Episode::find_one_by_post_id( $data->ID ) | |
| 122 | - ) { | |
| 123 | - return new Podlove_Podcast_Publisher( $data ); | |
| 124 | - } | |
| 125 | - return $transformer; | |
| 126 | - }, | |
| 127 | - 10, | |
| 128 | - 3 | |
| 129 | - ); | |
| 130 | 102 | } |
| 131 | 103 | |
| 132 | 104 | /** |
| 133 | 105 | * Adds Seriously Simple Podcasting support. |