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/managers/DirectoryManager.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/managers/DirectoryManager.php b/inc/managers/DirectoryManager.php
index f2418cc..6b5f4c9 100644
--- a/inc/managers/DirectoryManager.php
+++ b/inc/managers/DirectoryManager.php
@@ -21,7 +21,7 @@
if (empty(jvbGlobalDirectories())) {
return;
}
- $this->cache = new CacheManager('directory', WEEK_IN_SECONDS);
+ $this->cache = CacheManager::for('directory', WEEK_IN_SECONDS);
add_action('init', [$this, 'registerDirectories']);
jvb_register_do_once('directories_registered', [$this, 'activate']);
@@ -97,7 +97,7 @@
'slug' => $slug,
'title' => $title,
'ID' => $ID,
- 'url' => get_home_url(2, '/directory/'.$slug),
+ 'url' => get_home_url(null, '/directory/'.$slug),
'page' => $title,
'description' =>$config[$directory]['description']??[],
'type' => $type,
@@ -126,7 +126,7 @@
'slug' => $slug,
'title' => $title,
'ID' => $ID,
- 'url' => get_home_url(2, '/directory/'.$slug),
+ 'url' => get_home_url(null, '/directory/'.$slug),
'page' => $title,
'description' =>$config[$directory]['description']??[],
'type' => $type,
@@ -150,7 +150,7 @@
'slug' => 'map',
'title' => 'Map',
'ID' => $ID,
- 'url' => get_home_url(2, '/directory/map'),
+ 'url' => get_home_url(null, '/directory/map'),
'page' => 'Map',
'type' => 'term',
];
--
Gitblit v1.10.0