PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Shortcodes/CategoryBox.php +3 -9 4.9.23.8.9 View file →
@@ -1,13 +1,8 @@
1 1 <?php
2 -// phpcs:disable WordPress.DB.SlowDBQuery.slow_db_query_meta_key -- ordering by user-assigned meta is required UX.
2 +
3 3 namespace WPDeveloper\BetterDocs\Shortcodes;
4 4
5 -if ( ! defined( 'ABSPATH' ) ) {
6 - exit;
7 -}
8 -
9 -
10 5 use WPDeveloper\BetterDocs\Core\Shortcode;
11 6
12 7 class CategoryBox extends Shortcode {
13 8 protected $layout_class = 'layout-1';
@@ -79,9 +74,9 @@
79 74 $_query_args = [
80 75 'terms' => $this->attributes['terms'],
81 76 'order' => $this->attributes['terms_order'],
82 77 'orderby' => $this->attributes['terms_orderby'],
83 - 'multiple_kb' => ( $this->attributes['multiple_knowledge_base'] && ! empty( $this->attributes['kb_slug'] ) ) ? true : false,
78 + 'multiple_kb' => $this->attributes['multiple_knowledge_base'],
84 79 'kb_slug' => $this->attributes['kb_slug'],
85 80 'nested_subcategory' => (bool) $this->attributes['nested_subcategory']
86 81 ];
87 82
@@ -118,9 +113,8 @@
118 113
119 114 'show_title' => true,
120 115 'show_count' => $show_count,
121 116 'count_suffix_singular' => $singular_text,
122 - 'count_suffix' => $plural_text,
123 - 'title_tag' => $this->attributes['title_tag']
117 + 'count_suffix' => $plural_text
124 118 ];
125 119 }
126 120 }