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/rest/routes/Invitations.php |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/inc/rest/routes/Invitations.php b/inc/rest/routes/Invitations.php
index 8758609..4022790 100644
--- a/inc/rest/routes/Invitations.php
+++ b/inc/rest/routes/Invitations.php
@@ -758,9 +758,9 @@
 		}
 		$toContentTax = implode(' ', $toContentTax);
 
-        $button = jvbMailButton($signup_url, 'Join the Scene!');
-        $link = jvbEmailLink($signup_url);
-        $signature = jvbSignature();
+        $button = JVB()->email()->button($signup_url, 'Join the Scene!');
+        $link = JVB()->email()->link($signup_url);
+        $signature = JVB()->email()->signature();
 
 		$message = sprintf(
 			'<p>Hi %s!</p>
@@ -802,7 +802,7 @@
 		);
 
 
-        $success = jvbMail($email, $subject, $message);
+        $success = JVB()->email()->sendEmail($email, $subject, $message);
 
 
         if (!$success) {
@@ -850,7 +850,7 @@
 			$name
 		);
 
-        $success =  jvbMail($email, $subject, $content, 'INVITATION REVOKED');
+        $success =  JVB()->email()->sendEmail($email, $subject, $content, 'INVITATION REVOKED');
         if (!$success) {
             JVB()->error()->log(
                 'invitation_revoke_email',
@@ -1009,7 +1009,6 @@
 
         $key = $this->cache->generateKey($args);
         $cache = $this->cache->get($key);
-        $cache = false;
         if ($cache) {
             return new WP_REST_Response($cache);
         }

--
Gitblit v1.10.0