Skip to content

Commit 51dea3d

Browse files
committed
fix #891
1 parent ad99fda commit 51dea3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration/load.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ function plugin_init() {
3535
*
3636
* @see https://wordpress.org/plugins/enable-mastodon-apps/
3737
*/
38-
require_once __DIR__ . '/class-enable-mastodon-apps.php';
39-
Enable_Mastodon_Apps::init();
38+
if ( \defined( 'MASTODON_APPS_VERSION' ) ) {
39+
require_once __DIR__ . '/class-enable-mastodon-apps.php';
40+
Enable_Mastodon_Apps::init();
41+
}
4042

4143
/**
4244
* Adds OpenGraph support.

0 commit comments

Comments
 (0)