| @@ -1,16 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * MainWP Check Childs Cron. |
| 4 | 4 | * |
| 5 | - * Include cron/bootstrap.php & run mainwp_croncheckstatus_action. | |
| 5 | + * Include cron/bootstrap.php & run mainwp_cron_uptime_monitoring_check_action. | |
| 6 | 6 | * |
| 7 | 7 | * @package MainWP/Dashboard |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | // include cron/bootstrap.php. |
| 11 | -require_once 'bootstrap.php'; | |
| 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 | - // fire off mainWP->mainwp_croncheckstatus_action. | |
| 15 | - $mainWP->mainwp_croncheckstatus_action(); | |
| 19 | + // fire off. | |
| 20 | + $mainWP->mainwp_cron_uptime_monitoring_check_action(); | |
| 16 | 21 | } |