From 26a01c4cced3d2a68f73b6d110574a48425c975d Mon Sep 17 00:00:00 2001 From: Daan van den Bergh <18595395+Dan0sz@users.noreply.github.com> Date: Thu, 5 Feb 2026 18:24:01 +0100 Subject: [PATCH 1/2] Improved: don't assume Client always exists. --- src/Helpers.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Helpers.php b/src/Helpers.php index 7c4b0427..88e21109 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -48,7 +48,11 @@ public static function get_js_url( $local = false ) { public static function get_filename() { $client = static::get_client(); - return $client->get_tracker_id(); + if ( ! $client instanceof Client ) { + return $client->get_tracker_id(); + } + + return ''; } /** From f0a78c6128e32506c80980975c6206e32378e901 Mon Sep 17 00:00:00 2001 From: Daan van den Bergh <18595395+Dan0sz@users.noreply.github.com> Date: Thu, 5 Feb 2026 18:46:26 +0100 Subject: [PATCH 2/2] Fixed: CE users that didn't yet enter an API token would get a critical error after updating to v2.5.1. --- src/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers.php b/src/Helpers.php index 88e21109..5662ae47 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -48,7 +48,7 @@ public static function get_js_url( $local = false ) { public static function get_filename() { $client = static::get_client(); - if ( ! $client instanceof Client ) { + if ( $client instanceof Client ) { return $client->get_tracker_id(); }