| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | - if ( empty( $author_name ) || empty( $author_docs_count ) ) { | |
| 2 | + | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | +if ( empty( $author_name ) || empty( $author_docs_count ) ) { | |
| 3 | 7 | return; |
| 4 | 8 | } |
| 5 | 9 | ?> |
| 6 | 10 | |
| @@ -7,13 +11,13 @@ | ||
| 7 | 11 | <div class="betterdocs-main-category-folder"> |
| 8 | 12 | <div class="betterdocs-category-header"> |
| 9 | 13 | <div class="betterdocs-category-header-inner"> |
| 10 | 14 | <div class="betterdocs-category-icon"> |
| 11 | - <?php echo $avatar_tag; ?> | |
| 15 | + <?php echo wp_kses_post( $avatar_tag ); ?> | |
| 12 | 16 | </div> |
| 13 | - <h2 class="betterdocs-category-title"><?php echo $author_name; ?></h2> | |
| 17 | + <h2 class="betterdocs-category-title"><?php echo esc_html( $author_name ); ?></h2> | |
| 14 | 18 | <div data-count="2" class="betterdocs-sub-category-items-counts"> |
| 15 | - <span><?php echo $author_docs_count . " " . __( 'Docs', 'betterdocs' ) ?></span> | |
| 19 | + <span><?php echo esc_html( $author_docs_count . ' ' . __( 'Docs', 'betterdocs' ) ); ?></span> | |
| 16 | 20 | </div> |
| 17 | 21 | </div> |
| 18 | 22 | </div> |
| 19 | 23 | </div> |