From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind

---
 inc/rest/RegisterRoutes.php |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/inc/rest/RegisterRoutes.php b/inc/rest/RegisterRoutes.php
index 1022b56..04c00c9 100644
--- a/inc/rest/RegisterRoutes.php
+++ b/inc/rest/RegisterRoutes.php
@@ -106,7 +106,6 @@
 	public function handlePOST(WP_REST_Request $request):WP_REST_Response
 	{
 		$data = $request->get_params();
-		error_log('Handling update with this data: '.print_r($data, true));
 		$user = $data['user'];
 		if (!$this->checkUser($user) || !$this->userCheck($user)) {
 			return new WP_REST_Response([
@@ -114,7 +113,6 @@
 				'message'   => 'Looks like you may not be who you say you are...'
 			]);
 		}
-		error_log('User passed');
 		if ($this->route === 'shop' && !$this->checkTerm([
 			'term_id'	=> $data['shop'],
 			'taxonomy'	=> $this->route
@@ -124,7 +122,6 @@
 				'message'   => 'This shop doesn\'t exist?'
 			]);
 		}
-		error_log('Processing...');
 		$queue = JVB()->queue();
 		unset($data['user']);
 		$operationID = $data['id'];
@@ -156,7 +153,6 @@
 	}
 	protected function handleUpdateOperation(int $userID, array $data):WP_Error|array
 	{
-		error_log('Handling update Operation with route: '.print_r($this->route, true));
 		if ($this->route === 'options') {
 			if (!user_can($userID, 'manage_options')) {
 				return [
@@ -182,7 +178,6 @@
 			return array_key_exists($v, $this->config['fields']??[]);
 		}, ARRAY_FILTER_USE_BOTH);
 
-		error_log('Allowed Result: '.print_r($allowed, true));
 
 		foreach ($allowed as $name => $value) {
 			if (empty($value)) {

--
Gitblit v1.10.0