| @@ -1,10 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 3 | - | |
| 4 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | - exit; | |
| 6 | -} | |
| 7 | 2 | if ( ! isset( $current_category ) ) { |
| 8 | 3 | return; |
| 9 | 4 | } |
| 10 | 5 | |
| @@ -17,9 +12,9 @@ | ||
| 17 | 12 | 'suffix_singular' => ! empty( $count_suffix_singular ) ? $count_suffix_singular : '' |
| 18 | 13 | ]; |
| 19 | 14 | ?> |
| 20 | 15 | |
| 21 | -<div class="<?php echo esc_attr( $blockId ); ?> betterdocs-main-category-folder"> | |
| 16 | +<div class="<?php echo $blockId; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> betterdocs-main-category-folder"> | |
| 22 | 17 | <div class="betterdocs-category-header"> |
| 23 | 18 | <div class="betterdocs-category-header-inner"> |
| 24 | 19 | <?php |
| 25 | 20 | $view_object->get( |