PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 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 All 201 releases
← All changes | views/template-parts/author-header.php +8 -4 4.5.0 → 4.9.3 View file →
@@ -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>