From 894ec8a6f2ac62edbac7b3b6a88e3666f335c673 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 15 May 2026 15:08:42 +0000
Subject: [PATCH] =Refactor of CustomBlocks.php to move a majority of the logic to the pre_render_field instead of render_field, and adding support for more blocks
---
base/content.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/content.php b/base/content.php
index 15dd130..215c697 100644
--- a/base/content.php
+++ b/base/content.php
@@ -18,9 +18,9 @@
* - rewrites = (array) key = associated taxonomy; value = what to append to rewrite base
*/
$defaults = [];
-if (array_key_exists('has_support', JVB_SITE) && JVB_SITE['has_support'] === true) {
- $defaults = array_merge($defaults, jvb_support_post_type());
-}
+//if (!empty(JVB_SITE) && array_key_exists('has_support', JVB_SITE) && JVB_SITE['has_support'] === true) {
+// $defaults = array_merge($defaults, jvb_support_post_type());
+//}
$content = array_merge($defaults, apply_filters('jvb_content', []));
define('JVB_CONTENT', $content);
--
Gitblit v1.10.0