From fff721dd185f5b97f7ae7a6e64189e55887ff590 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 05 Jul 2026 18:36:57 +0000
Subject: [PATCH] =Cleaning up the Square integration (still a bit more to do yet). Also majorly overhauled /rest/ files to ignore a rest request 'user' paramater, and rely on get_current_user_id() instead.
---
inc/integrations/GoogleMaps.php | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/inc/integrations/GoogleMaps.php b/inc/integrations/GoogleMaps.php
index 31a3d36..545e323 100644
--- a/inc/integrations/GoogleMaps.php
+++ b/inc/integrations/GoogleMaps.php
@@ -25,7 +25,17 @@
private const DEFAULT_ZOOM = 11; // City-wide view
private const DEFAULT_MAP_ID = '873aed4ca260b4203e45b6e3';
- public function __construct()
+ protected static self $instance;
+ public static function getInstance():self
+ {
+
+ if (!isset(self::$instance)) {
+ self::$instance = new self();
+ }
+ return self::$instance;
+ }
+
+ protected function __construct()
{
$this->service_name = 'maps';
$this->title = 'Google Maps';
--
Gitblit v1.10.0