PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
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 3.5.1 All 200 releases
← All changes | views/widgets/content.php +26 -16 3.3.44.9.2 View file →
@@ -1,22 +1,32 @@
1 1 <?php
2 - if( ! is_singular( 'docs' ) ) {
3 - return;
4 - }
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +if ( ! is_singular( 'docs' ) ) {
7 + return;
8 +}
5 9 ?>
6 10
7 11 <div
8 - <?php echo $wrapper_attr; ?>>
9 - <?php
10 - if( $widget_type != 'blocks' ) {
11 - betterdocs()->views->get( 'templates/parts/print-icon', [
12 - 'enable' => (bool) $enable
13 - ] );
14 - }
12 + <?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
13 + <?php
14 + if ( isset( $widget_type ) && $widget_type != 'blocks' ) {
15 + betterdocs()->views->get(
16 + 'templates/parts/print-icon',
17 + [
18 + 'enable' => (bool) $enable
19 + ]
20 + );
21 + }
15 22
16 - // The Content For A Docs
17 - $view_object->get( 'templates/parts/content', [
18 - 'htags' => $htags,
19 - 'enable_toc' => $enable_toc
20 - ] );
21 - ?>
23 + // The Content For A Docs
24 + $view_object->get(
25 + 'templates/parts/content',
26 + [
27 + 'htags' => $htags,
28 + 'enable_toc' => $enable_toc
29 + ]
30 + );
31 + ?>
22 32 </div>