fixed bug for wpforo shortcodes.

This commit is contained in:
CBS Information System 2021-07-19 13:51:33 +09:00
parent ae9bfbe051
commit 459535c906
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
*.bak *.bak
.idea/ .idea/
.php_cs.cache .php_cs.cache
.php-cs-fixer.cache

View File

@ -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['topics'] = cbsonline_wpforo_topic_get_topics($args, $current_object['items_count']);
} }
$current_object['categories'] = [$forum];
} else { } else {
$current_object['is_404'] = true; $current_object['is_404'] = true;
} }