diff --git a/activitypub.php b/activitypub.php index 7d7a13693..b4d8fea2b 100644 --- a/activitypub.php +++ b/activitypub.php @@ -21,6 +21,12 @@ \define( 'ACTIVITYPUB_PLUGIN_VERSION', '4.2.1' ); +// Plugin related constants. +\define( 'ACTIVITYPUB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); +\define( 'ACTIVITYPUB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); +\define( 'ACTIVITYPUB_PLUGIN_FILE', ACTIVITYPUB_PLUGIN_DIR . basename( __FILE__ ) ); +\define( 'ACTIVITYPUB_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); + require_once __DIR__ . '/includes/compat.php'; require_once __DIR__ . '/includes/functions.php'; require_once __DIR__ . '/includes/constants.php'; diff --git a/includes/constants.php b/includes/constants.php index a6305f150..e90977eb4 100644 --- a/includes/constants.php +++ b/includes/constants.php @@ -68,9 +68,3 @@ \define( 'ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC', '' ); \define( 'ACTIVITYPUB_CONTENT_VISIBILITY_QUIET_PUBLIC', 'quiet_public' ); \define( 'ACTIVITYPUB_CONTENT_VISIBILITY_LOCAL', 'local' ); - -// Plugin related constants. -\define( 'ACTIVITYPUB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -\define( 'ACTIVITYPUB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); -\define( 'ACTIVITYPUB_PLUGIN_FILE', ACTIVITYPUB_PLUGIN_DIR . basename( __FILE__ ) ); -\define( 'ACTIVITYPUB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );