From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.
---
inc/rest/routes/OptionsRoutes.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/inc/rest/routes/OptionsRoutes.php b/inc/rest/routes/OptionsRoutes.php
index 2bb2c2c..9b3bf54 100644
--- a/inc/rest/routes/OptionsRoutes.php
+++ b/inc/rest/routes/OptionsRoutes.php
@@ -1,6 +1,7 @@
<?php
namespace JVBase\rest\routes;
+use JVBase\registrar\Registrar;
use JVBase\rest\PermissionHandler;
use JVBase\rest\Rest;
use JVBase\managers\Cache;
@@ -32,7 +33,8 @@
->args([
'user' => 'int|required',
'id' => 'string|required',
- ]);
+ ])
+ ->register();
}
public function saveOptions(WP_REST_Request $request):WP_REST_Response
@@ -80,7 +82,7 @@
];
$meta = Meta::forOptions('options');
- $fields = jvbGetFields('options');
+ $fields = Registrar::getFieldsFor('options');
$allowedFields = array_filter($data,
function ($key) use ($fields) {
--
Gitblit v1.10.0