| @@ -20,9 +20,13 @@ | ||
| 20 | 20 | } |
| 21 | 21 | </style> |
| 22 | 22 | |
| 23 | 23 | <?php |
| 24 | - if ( $major ) { | |
| 24 | + | |
| 25 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 26 | + exit; | |
| 27 | +} | |
| 28 | +if ( $major ) { | |
| 25 | 29 | printf( |
| 26 | 30 | '<p class="betterdocs-major-update-title">%s</p>', |
| 27 | 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 |
| 28 | 32 | ); |