From 72ac246630e755345a56271679eb8807de260a21 Mon Sep 17 00:00:00 2001 From: colorlink Date: Fri, 16 Oct 2026 20:44:28 +0000 Subject: [PATCH] =?UTF-8?q?fix(Batch37):=20MailPoet=20guard=20=E2=80=94=20?= =?UTF-8?q?MAILPOET=5FVERSION=20is=20not=20defined=20at=20load;=20gate=20o?= =?UTF-8?q?n=20MAILPOET=5FMINIMUM=5FREQUIRED=5FWP=5FVERSION=20too=20(verif?= =?UTF-8?q?ied=20live=20on=20mainwp)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Q8t9GEyyLZbUQu26na1JQg --- includes/Extensions/Batch37.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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; }