PluginProbe
ActivityPub / 7.7.0
ActivityPub v7.7.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | integration/load.php +15 -34 9.2.07.7.0 View file →
@@ -6,13 +6,11 @@
6 6 */
7 7
8 8 namespace Activitypub\Integration;
9 9
10 -use Activitypub\Autoloader;
11 -
12 10 use function Activitypub\site_supports_blocks;
13 11
14 -Autoloader::register_path( __NAMESPACE__, __DIR__ );
12 +\Activitypub\Autoloader::register_path( __NAMESPACE__, __DIR__ );
15 13
16 14 /**
17 15 * Initialize the ActivityPub integrations.
18 16 */
@@ -35,9 +33,9 @@
35 33 * and sites without block editor support.
36 34 *
37 35 * @see https://wordpress.org/plugins/classic-editor/
38 36 */
39 - if ( \class_exists( '\Classic_Editor' ) || \function_exists( 'classicpress_version' ) || ! site_supports_blocks() ) {
37 + if ( class_exists( '\Classic_Editor' ) || ! site_supports_blocks() ) {
40 38 Classic_Editor::init();
41 39 }
42 40
43 41 /**
@@ -103,36 +101,8 @@
103 101 Opengraph::init();
104 102 }
105 103
106 104 /**
107 - * Adds Podlove Podcast Publisher support.
108 - *
109 - * This class handles the compatibility with Podlove Podcast Publisher.
110 - *
111 - * @see https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/
112 - */
113 - if ( \defined( 'Podlove\PLUGIN_FILE' ) ) {
114 - // Enable ActivityPub support for the podcast post type.
115 - \add_post_type_support( 'podcast', 'activitypub' );
116 -
117 - \add_filter(
118 - 'activitypub_transformer',
119 - static function ( $transformer, $data, $object_class ) {
120 - if (
121 - 'WP_Post' === $object_class &&
122 - 'podcast' === $data->post_type &&
123 - \Podlove\Model\Episode::find_one_by_post_id( $data->ID )
124 - ) {
125 - return new Podlove_Podcast_Publisher( $data );
126 - }
127 - return $transformer;
128 - },
129 - 10,
130 - 3
131 - );
132 - }
133 -
134 - /**
135 105 * Adds Seriously Simple Podcasting support.
136 106 *
137 107 * This class handles the compatibility with Seriously Simple Podcasting.
138 108 *
@@ -138,11 +108,11 @@
138 108 *
139 109 * @see https://wordpress.org/plugins/seriously-simple-podcasting/
140 110 */
141 111 if ( \defined( 'SSP_VERSION' ) ) {
142 - \add_filter(
112 + add_filter(
143 113 'activitypub_transformer',
144 - static function ( $transformer, $data, $object_class ) {
114 + function ( $transformer, $data, $object_class ) {
145 115 if (
146 116 'WP_Post' === $object_class &&
147 117 \get_post_meta( $data->ID, 'audio_file', true )
148 118 ) {
@@ -181,8 +151,19 @@
181 151 *
182 152 * @see https://wordpress.org/plugins/webfinger/
183 153 */
184 154 Webfinger::init();
155 +
156 + /**
157 + * Adds WP REST Cache support.
158 + *
159 + * This class handles the compatibility with the WP REST Cache plugin.
160 + *
161 + * @see https://wordpress.org/plugins/wp-rest-cache/
162 + */
163 + if ( \class_exists( 'WP_Rest_Cache_Plugin\Includes\Plugin' ) ) {
164 + WP_Rest_Cache::init();
165 + }
185 166
186 167 /**
187 168 * Adds WPML Multilingual CMS (plugin) support.
188 169 *