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