| @@ -7,8 +7,13 @@ | ||
| 7 | 7 | * @package MainWP/Backups |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | // include cron/bootstrap.php. |
| 11 | -require_once 'bootstrap.php'; | |
| 11 | +require_once 'bootstrap.php'; // NOSONAR - WP compatible. | |
| 12 | + | |
| 13 | +// Exit if accessed directly. | |
| 14 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 15 | + exit; | |
| 16 | +} | |
| 12 | 17 | |
| 13 | 18 | // fire off mainWP->mainwp_cronbackups_action. |
| 14 | 19 | $mainWP->mainwp_cronbackups_action(); |