diff --git a/plugin.php b/plugin.php index 4c8da98d..7dfcf71f 100644 --- a/plugin.php +++ b/plugin.php @@ -9,14 +9,12 @@ define('TANGIBLE_FIELDS_IS_PLUGIN', true); -if (!defined('TANGIBLE_VENDOR_PATH')) { - define('TANGIBLE_VENDOR_PATH', is_dir( - ($path = __DIR__ . '/vendor/tangible') - ) ? $path : __DIR__ . '/..'); -} +$module_path = is_dir( + ($path = __DIR__ . '/vendor/tangible') +) ? $path : __DIR__ . '/..'; -require_once TANGIBLE_VENDOR_PATH . '/framework/index.php'; -require_once TANGIBLE_VENDOR_PATH . '/updater/index.php'; +require_once $module_path . '/framework/index.php'; +require_once $module_path . '/updater/index.php'; require_once __DIR__ . '/index.php'; add_action('plugins_loaded', function() {