From 42fa8304ddb811b0f725f245130f70c0f5e86a6c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 04 Nov 2025 06:12:02 +0000
Subject: [PATCH] =Refactored LoginManager to be more extensible and configurable, as well as an AjaxRateLimiter
---
inc/meta/MetaManager.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/inc/meta/MetaManager.php b/inc/meta/MetaManager.php
index e4644f2..380ac9a 100644
--- a/inc/meta/MetaManager.php
+++ b/inc/meta/MetaManager.php
@@ -506,6 +506,7 @@
if (!empty($this->fields)) {
return $this->fields;
}
+ $type = false;
switch ($this->object_type) {
case 'post':
$type = get_post_type((int)$this->object_id);
@@ -519,6 +520,9 @@
case 'options':
return jvbGetFields('options');
}
+ if (!$type) {
+ return [];
+ }
return jvbGetFields($type, $this->object_type);
}
@@ -546,6 +550,7 @@
protected function getSections():array
{
+ $type = false;
switch ($this->object_type) {
case 'post':
$type = get_post_type((int)$this->object_id);
--
Gitblit v1.10.0