| @@ -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"> |