diff --git a/includes/Extensions/Batch37.php b/includes/Extensions/Batch37.php index 2878d77..2ab0992 100644 --- a/includes/Extensions/Batch37.php +++ b/includes/Extensions/Batch37.php @@ -1,7 +1,10 @@ 'object', 'properties' => $props ?: new \stdClass()]; @@ -29,7 +32,8 @@ class Batch37 { } public static function detect(array $args): array { - return ['active' => defined('MAILPOET_VERSION'), 'version' => defined('MAILPOET_VERSION') ? MAILPOET_VERSION : null]; + $active = defined('MAILPOET_VERSION') || defined('MAILPOET_MINIMUM_REQUIRED_WP_VERSION'); + return ['active' => $active, 'version' => defined('MAILPOET_VERSION') ? MAILPOET_VERSION : null]; } private static function tbl(string $n): string { global $wpdb; return $wpdb->prefix . $n; }