From 9f86429a1252b45c95b7c62fbaa1b82de3723997 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 05 Jan 2026 18:16:07 +0000
Subject: [PATCH] =Complete TaxonomySelector.js and TaxonomyCreator.js refactor
---
inc/admin/Integrations.php | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/inc/admin/Integrations.php b/inc/admin/Integrations.php
index a774548..4f47744 100644
--- a/inc/admin/Integrations.php
+++ b/inc/admin/Integrations.php
@@ -64,20 +64,28 @@
wp_enqueue_script(
'jvb-admin-scripts',
JVB_URL . 'assets/js/min/integrations.min.js',
- [],
+ ['jvb-auth'],
'1.0.0',
true
);
- wp_localize_script(
- 'jvb-admin-scripts',
- 'jvbSettings',
- [
- 'api' => rest_url('jvb/v1/'),
- 'currentUser' => get_current_user_id(),
- 'nonce' => wp_create_nonce('wp_rest'),
- ]
- );
+ $queue = [
+ 'api' => rest_url('jvb/v1/'),
+ 'redirect' => wp_login_url(home_url(add_query_arg(null, null))),
+ 'labels' => jvbGetLabels(),
+ ];
+
+ wp_localize_script('jvb-auth', 'jvbSettings', $queue);
+//
+// wp_localize_script(
+// 'jvb-admin-scripts',
+// 'jvbSettings',
+// [
+// 'api' => rest_url('jvb/v1/'),
+// 'currentUser' => get_current_user_id(),
+// 'nonce' => wp_create_nonce('wp_rest'),
+// ]
+// );
}
/**
--
Gitblit v1.10.0