From ba1e1ccf869b818f7a7a897264dfea05563a7796 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 07 Jun 2026 20:10:20 +0000
Subject: [PATCH] =Major overhaul of Integrations. Playing around with adding fields to post types through Registrar from an integrations' class file.
---
inc/meta/Meta.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/inc/meta/Meta.php b/inc/meta/Meta.php
index 744fae5..35a8c3d 100644
--- a/inc/meta/Meta.php
+++ b/inc/meta/Meta.php
@@ -197,6 +197,11 @@
}
if (!array_key_exists($name, $this->fields)) {
error_log('[Meta]::get Attempted to get unregistered field: '.$name);
+ return '';
+ }
+ if (is_null($this->fields[$name])) {
+ error_log('[Meta]::get Field does not seem to be setup yet: '.$name);
+ return '';
}
return $this->fields[$name]->get()??'';
}
--
Gitblit v1.10.0