From c68aefb847b09daa0697de7684d3451e2e68ce1e Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 09 Jul 2026 23:10:23 +0000
Subject: [PATCH] =Refactor of Integrations.php to be a bit more useful with a suite of methods for create, update, delete back and forths for integrations where sharing is enabled. Also considering a single instance with a connect method to connect as the site (no user) vs connecting as an individual user - rather than recreating instances for every user.
---
activate.php | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/activate.php b/activate.php
index 65ec6a9..3c960d7 100644
--- a/activate.php
+++ b/activate.php
@@ -30,9 +30,8 @@
do_action(BASE.'activation');
error_log('Action done!');
error_log('Checking custom tables...');
- Queue::defineTables();
CustomTable::ensureTables();
- error_log('Dashboard is setup: '.print_r(JVB()->dashboard(), true));
+
// (new JVBase\registry\CheckCustomTables())->maybeCreateTables();
error_log('Tables created!');
@@ -65,7 +64,7 @@
$role = get_role('administrator');
$users = get_users(['role' => 'administrator']);
- foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content')) as $slug) {
+ foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content')) as $slug) {
error_log('Adding administrative roles to '.$slug);
$plural = $roleManager->getContentPlural($slug);
$capabilities = [
@@ -106,7 +105,7 @@
$roleManager = new RoleManager();
$users = get_users(['role' => 'administrator']);
- foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content', 'term')) as $slug) {
+ foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content', 'term')) as $slug) {
foreach ($users as $user) {
// These methods should check if post type exists before adding caps
--
Gitblit v1.10.0