| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | Plugin URI: https://wpremote.com |
| 5 | 5 | Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. |
| 6 | 6 | Author: WP Remote |
| 7 | 7 | Author URI: https://wpremote.com |
| 8 | -Version: 5.68 | |
| 8 | +Version: 5.72 | |
| 9 | 9 | Network: True |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* Copyright 2017 WP Remote (email : support@wpremote.com) |
| @@ -37,8 +37,10 @@ | ||
| 37 | 37 | require_once dirname( __FILE__ ) . '/wp_actions.php'; |
| 38 | 38 | require_once dirname( __FILE__ ) . '/info.php'; |
| 39 | 39 | require_once dirname( __FILE__ ) . '/account.php'; |
| 40 | 40 | require_once dirname( __FILE__ ) . '/helper.php'; |
| 41 | +require_once dirname( __FILE__ ) . '/wp_2fa/wp_2fa.php'; | |
| 42 | + | |
| 41 | 43 | ##WPCACHEMODULE## |
| 42 | 44 | |
| 43 | 45 | |
| 44 | 46 | $bvsettings = new WPRWPSettings(); |
| @@ -54,9 +56,9 @@ | ||
| 54 | 56 | register_activation_hook(__FILE__, array($wp_action, 'activate')); |
| 55 | 57 | register_deactivation_hook(__FILE__, array($wp_action, 'deactivate')); |
| 56 | 58 | |
| 57 | 59 | add_action('wp_footer', array($wp_action, 'footerHandler'), 100); |
| 58 | -add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config')); | |
| 60 | +add_action('wpr_clear_bv_services_config', array($wp_action, 'clear_bv_services_config')); | |
| 59 | 61 | ##SOADDUNINSTALLACTION## |
| 60 | 62 | |
| 61 | 63 | ##DISABLE_OTHER_OPTIMIZATION_PLUGINS## |
| 62 | 64 | |
| @@ -84,8 +86,13 @@ | ||
| 84 | 86 | if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { |
| 85 | 87 | $_REQUEST = array_merge($_GET, $_POST); |
| 86 | 88 | } |
| 87 | 89 | |
| 90 | +#Service active check | |
| 91 | +if ($bvinfo->config != false) { | |
| 92 | + add_action('wpr_remove_bv_preload_include', array($wp_action, 'removeBVPreload')); | |
| 93 | +} | |
| 94 | + | |
| 88 | 95 | require_once dirname( __FILE__ ) . '/php_error_monitoring/monitoring.php'; |
| 89 | 96 | WPRWPPHPErrorMonitoring::init(); |
| 90 | 97 | |
| 91 | 98 | if ($bvinfo->hasValidDBVersion()) { |
| @@ -182,16 +189,16 @@ | ||
| 182 | 189 | if ($bvinfo->hasValidDBVersion()) { |
| 183 | 190 | if ($bvinfo->isProtectModuleEnabled()) { |
| 184 | 191 | require_once dirname( __FILE__ ) . '/protect/protect.php'; |
| 185 | 192 | //For backward compatibility. |
| 186 | - WPRProtect_V568::$settings = new WPRWPSettings(); | |
| 187 | - WPRProtect_V568::$db = new WPRWPDb(); | |
| 188 | - WPRProtect_V568::$info = new WPRInfo(WPRProtect_V568::$settings); | |
| 193 | + WPRProtect_V572::$settings = new WPRWPSettings(); | |
| 194 | + WPRProtect_V572::$db = new WPRWPDb(); | |
| 195 | + WPRProtect_V572::$info = new WPRInfo(WPRProtect_V572::$settings); | |
| 189 | 196 | |
| 190 | - add_action('clear_pt_config', array('WPRProtect_V568', 'uninstall')); | |
| 197 | + add_action('wpr_clear_pt_config', array('WPRProtect_V572', 'uninstall')); | |
| 191 | 198 | |
| 192 | 199 | if ($bvinfo->isActivePlugin()) { |
| 193 | - WPRProtect_V568::init(WPRProtect_V568::MODE_WP); | |
| 200 | + WPRProtect_V572::init(WPRProtect_V572::MODE_WP); | |
| 194 | 201 | } |
| 195 | 202 | } |
| 196 | 203 | |
| 197 | 204 | if ($bvinfo->isDynSyncModuleEnabled()) { |