| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | * Author: MainWP |
| 8 | 8 | * Author URI: https://mainwp.com |
| 9 | 9 | * Plugin URI: https://mainwp.com/ |
| 10 | 10 | * Text Domain: mainwp |
| 11 | - * Version: 6.1.6 | |
| 11 | + * Version: 6.2.1 | |
| 12 | 12 | * License: GPLv3 or later |
| 13 | 13 | * License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 14 | 14 | * |
| 15 | 15 | * @package MainWP/Dashboard |
| @@ -151,8 +151,21 @@ | ||
| 151 | 151 | |
| 152 | 152 | // Initialize Abilities API integration (does nothing if Abilities API not available). |
| 153 | 153 | if ( class_exists( '\MainWP\Dashboard\MainWP_Abilities' ) ) { |
| 154 | 154 | \MainWP\Dashboard\MainWP_Abilities::init(); |
| 155 | +} | |
| 156 | + | |
| 157 | +if ( file_exists( MAINWP_PLUGIN_DIR . 'modules/system-monitor/bootstrap.php' ) ) { | |
| 158 | + define( 'MAINWP_SYSTEM_MONITOR_FILE', __FILE__ ); | |
| 159 | + require_once MAINWP_PLUGIN_DIR . 'modules/system-monitor/bootstrap.php'; // NOSONAR - WP compatible. | |
| 160 | + register_activation_hook( | |
| 161 | + MAINWP_SYSTEM_MONITOR_FILE, | |
| 162 | + array( MainWP\Dashboard\SystemMonitor\MainWP_System_Monitor::class, 'activate' ) | |
| 163 | + ); | |
| 164 | + register_deactivation_hook( | |
| 165 | + MAINWP_SYSTEM_MONITOR_FILE, | |
| 166 | + array( MainWP\Dashboard\SystemMonitor\MainWP_System_Monitor::class, 'deactivate' ) | |
| 167 | + ); | |
| 155 | 168 | } |
| 156 | 169 | |
| 157 | 170 | // Detect if secupress_scanner is running. |
| 158 | 171 | $mainwp_is_secupress_scanning = false; |