From f4be611c51473359e6d41780f0313c446079e9d3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 09 Jun 2026 15:19:24 +0000
Subject: [PATCH] =Switched the /base/options.php to the same pattern as Site.php: a class based approached rather than a filter. Updated Meta.php to play along with the defined fields from there in Meta::forOptions. Had to change openingHoursSpecificationsTrait.php to not use the translater functions __('text','textdomain') for now, as we load before init.
---
inc/integrations/Umami.php | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/inc/integrations/Umami.php b/inc/integrations/Umami.php
index 0fa280b..048e784 100644
--- a/inc/integrations/Umami.php
+++ b/inc/integrations/Umami.php
@@ -1,7 +1,7 @@
<?php
namespace JVBase\integrations;
-use JVBase\managers\CacheManager;
+use JVBase\managers\Cache;
use WP_Error;
use WP_Post;
use Exception;
@@ -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();
@@ -677,7 +677,7 @@
if ($data) {
// Clear cache for today
$cache_key = md5("analytics_{$today}_{$today}");
- $this->cache->delete($cache_key);
+ $this->cache->forget($cache_key);
return [
'success' => true,
--
Gitblit v1.10.0