refactor: remove forum and topic feature chains
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user