refactor: remove forum and topic feature chains

This commit is contained in:
2026-08-17 14:52:19 +08:00
parent 698e3750f9
commit 6c6c462df8
69 changed files with 339 additions and 2057 deletions
-15
View File
@@ -98,19 +98,6 @@ if (is_wp_error($categories)) {
}
$current_cats = $edit_post ? wp_get_post_categories($edit_post->ID) : [];
$topics_terms = [];
$current_topics = [];
if (!empty($settings['topics_s']) && taxonomy_exists('topics')) {
$topics_terms = get_terms(['taxonomy' => 'topics', 'hide_empty' => false, 'orderby' => 'name', 'order' => 'ASC']);
if (is_wp_error($topics_terms)) {
$topics_terms = [];
}
if ($edit_post) {
$t = wp_get_object_terms($edit_post->ID, 'topics', ['fields' => 'ids']);
$current_topics = is_wp_error($t) ? [] : $t;
}
}
$custom_dimensions = [];
$current_cf = [];
if (!empty($settings['custom_filter_s']) && class_exists('\AKSRT\Settings\Settings')) {
@@ -192,8 +179,6 @@ return [
'featured_args' => $featured_args,
'categories' => $categories,
'current_cats' => $current_cats,
'topics_terms' => $topics_terms,
'current_topics' => $current_topics,
'custom_dimensions' => $custom_dimensions,
'current_cf' => $current_cf,
'current_title' => $current_title,