From 459535c906e889f21e96386d2ee9cb69bd381e8c Mon Sep 17 00:00:00 2001 From: NIU Administrator Date: Mon, 19 Jul 2021 13:51:33 +0900 Subject: [PATCH] fixed bug for wpforo shortcodes. --- .gitignore | 1 + functions.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8c1c2a2..1b2a4c6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ *.bak .idea/ .php_cs.cache +.php-cs-fixer.cache diff --git a/functions.php b/functions.php index ecdef5e..fd99670 100644 --- a/functions.php +++ b/functions.php @@ -301,6 +301,7 @@ function cbsonline_wpforo_after_init_current_object($current_object, $wpf_url_pa ]; $current_object['topics'] = cbsonline_wpforo_topic_get_topics($args, $current_object['items_count']); } + $current_object['categories'] = [$forum]; } else { $current_object['is_404'] = true; }