From 457c329237f97069063e641b10f384a52d584f21 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 12 May 2026 17:50:11 +0000
Subject: [PATCH] =minor tweaks
---
inc/meta/Meta.php | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/inc/meta/Meta.php b/inc/meta/Meta.php
index a32c545..a6594a7 100644
--- a/inc/meta/Meta.php
+++ b/inc/meta/Meta.php
@@ -104,11 +104,8 @@
'post' => get_post($id),
'term' => get_term($id),
'user', 'integrations' => get_userdata($id),
- default => null
+ default => false
};
- if (!$this->wpObject){
- return;
- }
$this->slug = match($type) {
'post' => $this->wpObject->post_type,
@@ -254,7 +251,6 @@
public function setAll(array $data):bool
{
foreach ($data as $name => $value) {
- error_log('Setting '.$name.' with value: '.print_r($value, true));
$this->set($name, $value, false);
}
return $this->save();
--
Gitblit v1.10.0