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/admin/notices/upgrade.php +34 -30 3.3.4 → 4.9.3 View file →
@@ -1,37 +1,41 @@
1 1 <div class="betterdocs-plugin-update-message">
2 - <style>
3 - .betterdocs-plugin-update-message p:before { content: ''; margin-right: 0; display: none; }
4 - .betterdocs-plugin-update-message ul {
5 - list-style: disc;
6 - padding-left: 15px;
7 - }
2 + <style>
3 + .betterdocs-plugin-update-message p:before { content: ''; margin-right: 0; display: none; }
4 + .betterdocs-plugin-update-message ul {
5 + list-style: disc;
6 + padding-left: 15px;
7 + }
8 8
9 - .betterdocs-plugin-update-message p:first-of-type,
10 - .betterdocs-plugin-update-message p.betterdocs-major-update-title {
11 - font-weight: 700;
12 - margin-top: 25px;
13 - margin-bottom: 10px;
14 - }
9 + .betterdocs-plugin-update-message p:first-of-type,
10 + .betterdocs-plugin-update-message p.betterdocs-major-update-title {
11 + font-weight: 700;
12 + margin-top: 25px;
13 + margin-bottom: 10px;
14 + }
15 15
16 - .betterdocs-plugin-update-message p.betterdocs-major-update-title {
17 - border-bottom: 1px solid #ffb900;
18 - padding-bottom: 10px;
19 - margin-bottom: 20px;
20 - }
21 - </style>
16 + .betterdocs-plugin-update-message p.betterdocs-major-update-title {
17 + border-bottom: 1px solid #ffb900;
18 + padding-bottom: 10px;
19 + margin-bottom: 20px;
20 + }
21 + </style>
22 22
23 - <?php
24 - if ( $major ) {
25 - printf(
26 - '<p class="betterdocs-major-update-title">%s</p>',
27 - __( 'Heads up, Please backup before upgrade!', 'betterdocs' )
28 - );
29 - }
23 + <?php
24 +
25 +if ( ! defined( 'ABSPATH' ) ) {
26 + exit;
27 +}
28 +if ( $major ) {
29 + printf(
30 + '<p class="betterdocs-major-update-title">%s</p>',
31 + __( 'Heads up, Please backup before upgrade!', 'betterdocs' ) //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Not Required For Ecaping Because This Is A Static String Without Html Tags
32 + );
33 + }
30 34
31 - /**
32 - * @var object $response;
33 - */
34 - echo isset( $response->upgrade_notice ) ? $response->upgrade_notice : '';
35 - ?>
35 + /**
36 + * @var object $response;
37 + */
38 + echo isset( $response->upgrade_notice ) ? $response->upgrade_notice : ''; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Not Required For Escaping Because The Upgrade Notice Can Contain Html Tags, Which Are Needed For This File
39 + ?>
36 40 </div>
37 41 <p style="display: none">