PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.3 6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 All 156 releases
← All changes | mainwp.php +14 -1 6.1.4 → 6.2.1 View file →
@@ -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.4
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;