From 46d681c6b825d21b3f698d793c4e630c687d90ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 21 May 2026 21:41:53 +0000
Subject: [PATCH] =Major CustomBlocks.php overhaul, expanding block support and customization from the editor. theme.json should now be updated on new themes to set brand colours, etc. Also note: major change to .col vs .row alignment: simplifying it to .top .bottom vs the confusion of the differences for .col/.row .start and .a-start

---
 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