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-archive-doc-list.php +7 -3 4.5.3 → 4.9.3 View file →
@@ -1,7 +1,11 @@
1 1 <div class="betterdocs-title-excerpt-lists">
2 2 <?php
3 - $custom_icon = betterdocs()->customizer->defaults->get( 'betterdocs_archive_list_icon' );
3 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
4 +if ( ! defined( 'ABSPATH' ) ) {
5 + exit;
6 +}
7 +$custom_icon = betterdocs()->customizer->defaults->get( 'betterdocs_archive_list_icon' );
4 8 $settings_list_icon = betterdocs()->settings->get( 'docs_list_icon' );
5 9 if ( ! $custom_icon && $settings_list_icon ) {
6 10 $custom_icon = $settings_list_icon["url"];
7 11 }
@@ -16,9 +20,9 @@
16 20 <?php echo esc_html( get_the_title() ); ?>
17 21 </a>
18 22 </h2>
19 23 <?php
20 - echo wp_sprintf( '<span class="update-date">%s %s</span>', __( 'Last Updated:', 'betterdocs' ), get_the_modified_date() );
24 + echo wp_sprintf( '<span class="update-date">%s %s</span>', esc_html__( 'Last Updated:', 'betterdocs' ), esc_html( get_the_modified_date() ) );
21 25
22 26 add_filter('excerpt_more', function() {
23 27 return '...'; // Replace '[…]' with '...'
24 28 });
@@ -29,8 +33,8 @@
29 33 ?>
30 34 </div>
31 35 <?php
32 36 endwhile;
33 - wp_reset_query();
37 + wp_reset_postdata();
34 38 endif;
35 39 ?>
36 40 </div>