From 02e2db3b5603413f8706d541ade8c9b58d98ea08 Mon Sep 17 00:00:00 2001 From: colorlink Date: Fri, 16 Oct 2026 20:44:44 +0000 Subject: [PATCH] =?UTF-8?q?fix(Batch55):=20Blocksy=20guard=20=E2=80=94=20B?= =?UTF-8?q?LOCKSY=5FCOMPANION=5FVERSION=20is=20not=20defined;=20gate=20on?= =?UTF-8?q?=20BLOCKSY=5FPATH=20too=20(verified=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/Batch55.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/Extensions/Batch55.php b/includes/Extensions/Batch55.php index 9b95bdd..a1193a6 100644 --- a/includes/Extensions/Batch55.php +++ b/includes/Extensions/Batch55.php @@ -1,7 +1,10 @@ 'object', 'properties' => $props ?: new \stdClass()]; @@ -26,7 +29,9 @@ class Batch55 { } public static function detect(array $args): array { - return ['active' => defined('BLOCKSY_COMPANION_VERSION'), 'version' => defined('BLOCKSY_COMPANION_VERSION') ? BLOCKSY_COMPANION_VERSION : null]; + $active = defined('BLOCKSY_COMPANION_VERSION') || defined('BLOCKSY_PATH'); + $ver = defined('BLOCKSY_COMPANION_VERSION') ? BLOCKSY_COMPANION_VERSION : (defined('BLOCKSY_VERSION') ? BLOCKSY_VERSION : null); + return ['active' => $active, 'version' => $ver]; } public static function listContentBlocks(array $args): array {