| @@ -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 | } |