From 0afb2c0046b55c123eafb4ab9ee77efa68d12463 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 06 Jun 2026 17:15:31 +0000
Subject: [PATCH] =Starting the Favourites.js setup, converting previous Northeh stuff to new Registrar, fixing up Square.php integration to match
---
jvb.php | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/jvb.php b/jvb.php
index d5da153..3987ea3 100644
--- a/jvb.php
+++ b/jvb.php
@@ -20,6 +20,18 @@
exit;
}
+//add_action('admin_enqueue_scripts', function() {
+// global $wp_scripts;
+// add_action('admin_print_scripts', function() use ($wp_scripts) {
+// $queue = $wp_scripts->queue ?? [];
+// foreach ($queue as $handle) {
+// $src = $wp_scripts->registered[$handle]->src ?? 'unknown';
+// error_log("Enqueued: $handle => $src");
+// }
+// }, 999);
+//}, 999);
+
+
/**
* Track REST API errors by wrapping request execution
*/
@@ -83,6 +95,7 @@
define('JVB_TESTING', str_contains(get_home_url(),'.test'));
+//const JVB_TESTING = false;
//if (!JVB_TESTING) {
add_filter('show_admin_bar', '__return_false');
@@ -312,7 +325,6 @@
}
if (!empty($interactions)) {
- wp_enqueue_script('jvb-interactions');
foreach($interactions as $interaction) {
wp_enqueue_script('jvb-'.$interaction);
}
@@ -450,7 +462,7 @@
));
}
- jvbAddScriptDependency('jvb-feed-view-script', 'jvb-queue');
+// jvbAddScriptDependency('jvb-feed-view-script', 'jvb-queue');
jvbAddScriptDependency('jvb-feed-view-script', 'jvb-selector');
jvbAddScriptDependency('jvb-feed-view-script', 'jvb-data-store');
jvbAddScriptDependency('jvb-feed-view-script', 'jvb-cache');
@@ -462,6 +474,8 @@
jvbAddScriptDependency('jvb-forms-view-script', 'jvb-quill');
jvbAddScriptDependency('jvb-forms-view-script', 'jvb-form');
jvbAddScriptDependency('jvb-forms-view-script', 'jvb-tabs');
+
+ jvbAddScriptDependency('jvb-timeline-view-script', 'jvb-gallery');
}
function jvbAdminMap():void
@@ -574,3 +588,17 @@
jvbIcon('caret-double-up')
);
}
+
+add_action( 'doing_it_wrong_run', function ( $function_name ) {
+ if ( '_load_textdomain_just_in_time' === $function_name ) {
+ // This will print the full execution path to your screen or log
+ debug_print_backtrace();
+ }
+} );
+
+
+add_filter('the_seo_framework_sitemap_exclude_ids', 'jvb_maybe_exclude_singles', 8, 1);
+function jvb_maybe_exclude_singles(array $IDs):array
+{
+ return Registrar::maybeExcludeSingles($IDs);
+}
--
Gitblit v1.10.0