From 235ce5716edc2f7cbe80fdccf26eac7269587839 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 08 Jun 2026 04:38:18 +0000
Subject: [PATCH] =FavouritesManager.php and FavouritesRoutes.php fixes. Moving all logic to FavouritesManager.php. Still some left to do
---
inc/integrations/Umami.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/integrations/Umami.php b/inc/integrations/Umami.php
index 3c89b76..048e784 100644
--- a/inc/integrations/Umami.php
+++ b/inc/integrations/Umami.php
@@ -138,14 +138,14 @@
*/
public function renderTrackingScript(): void
{
+ // Skip on local environments
+ if (JVB_TESTING) {
+ return;
+ }
if (!$this->isSetUp() || is_admin()) {
return;
}
- // Skip on local environments
- if (strpos(get_home_url(), JVB_LOCAL) !== false) {
- return;
- }
$script_url = $this->getTrackingScriptUrl();
$website_id = $this->getWebsiteId();
--
Gitblit v1.10.0