From 01e9a8e40351a87f6548a4f55de842d6f6918ad0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 02:44:28 +0000
Subject: [PATCH] =Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite
---
inc/helpers/foodmenu.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/inc/helpers/foodmenu.php b/inc/helpers/foodmenu.php
index f0ba628..fbcd7e1 100644
--- a/inc/helpers/foodmenu.php
+++ b/inc/helpers/foodmenu.php
@@ -4,7 +4,7 @@
use JVBase\base\Options;
use JVBase\meta\Meta;
-function aneb_menu_sections():array
+function jvb_menu_sections():array
{
$sections = Options::get('menu_section_order');
if (empty($sections)) {
@@ -24,6 +24,9 @@
]);
if (!empty($terms) && !is_wp_error($terms)) {
foreach ($terms as $term) {
+ if ($term->name === 'Uncategorized') {
+ continue;
+ }
$sections[] = [
'id' => $term->term_id,
'name' => $term->name,
--
Gitblit v1.10.0