| @@ -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.73 | |
| 8 | +Version: 5.53 | |
| 9 | 9 | Network: True |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* Copyright 2017 WP Remote (email : support@wpremote.com) |
| @@ -37,10 +37,8 @@ | ||
| 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 | - | |
| 43 | 41 | ##WPCACHEMODULE## |
| 44 | 42 | |
| 45 | 43 | |
| 46 | 44 | $bvsettings = new WPRWPSettings(); |
| @@ -56,9 +54,9 @@ | ||
| 56 | 54 | register_activation_hook(__FILE__, array($wp_action, 'activate')); |
| 57 | 55 | register_deactivation_hook(__FILE__, array($wp_action, 'deactivate')); |
| 58 | 56 | |
| 59 | 57 | add_action('wp_footer', array($wp_action, 'footerHandler'), 100); |
| 60 | -add_action('wpr_clear_bv_services_config', array($wp_action, 'clear_bv_services_config')); | |
| 58 | +add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config')); | |
| 61 | 59 | ##SOADDUNINSTALLACTION## |
| 62 | 60 | |
| 63 | 61 | ##DISABLE_OTHER_OPTIMIZATION_PLUGINS## |
| 64 | 62 | |
| @@ -86,16 +84,8 @@ | ||
| 86 | 84 | if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { |
| 87 | 85 | $_REQUEST = array_merge($_GET, $_POST); |
| 88 | 86 | } |
| 89 | 87 | |
| 90 | -#Service active check | |
| 91 | -if ($bvinfo->config != false) { | |
| 92 | - add_action('wpr_remove_bv_preload_include', array($wp_action, 'removeBVPreload')); | |
| 93 | -} | |
| 94 | - | |
| 95 | -require_once dirname( __FILE__ ) . '/php_error_monitoring/monitoring.php'; | |
| 96 | -WPRWPPHPErrorMonitoring::init(); | |
| 97 | - | |
| 98 | 88 | if ($bvinfo->hasValidDBVersion()) { |
| 99 | 89 | if ($bvinfo->isServiceActive('activity_log')) { |
| 100 | 90 | require_once dirname( __FILE__ ) . '/wp_actlog.php'; |
| 101 | 91 | $bvconfig = $bvinfo->config; |
| @@ -138,30 +128,8 @@ | ||
| 138 | 128 | add_filter('frm_is_field_hidden', '__return_true', PHP_INT_MAX, 3); |
| 139 | 129 | |
| 140 | 130 | #handling of WP Forms plugin |
| 141 | 131 | add_filter('wpforms_process_bypass_captcha', '__return_true', PHP_INT_MAX, 3); |
| 142 | - | |
| 143 | - #handling of Forminator plugin | |
| 144 | - if (defined('WP_PLUGIN_DIR')) { | |
| 145 | - $abstractFrontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/abstracts/abstract-class-front-action.php'; | |
| 146 | - $frontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/modules/custom-forms/front/front-action.php'; | |
| 147 | - | |
| 148 | - if (file_exists($abstractFrontActionFilePath) && file_exists($frontActionFilePath)) { | |
| 149 | - require_once $abstractFrontActionFilePath; | |
| 150 | - require_once $frontActionFilePath; | |
| 151 | - if (class_exists('Forminator_CForm_Front_Action')) { | |
| 152 | - Forminator_CForm_Front_Action::$hidden_fields[] = "bv-stripe-"; | |
| 153 | - } | |
| 154 | - } | |
| 155 | - } | |
| 156 | - | |
| 157 | - #handling of CleanTalk Antispam plugin | |
| 158 | - add_action('init', function() { | |
| 159 | - global $apbct; | |
| 160 | - if (isset($apbct) && is_object($apbct)) { | |
| 161 | - $apbct->settings['forms__contact_forms_test'] = 0; | |
| 162 | - } | |
| 163 | - }); | |
| 164 | 132 | } else { |
| 165 | 133 | define('WPRBASEPATH', plugin_dir_path(__FILE__)); |
| 166 | 134 | |
| 167 | 135 | |
| @@ -188,17 +156,11 @@ | ||
| 188 | 156 | } else { |
| 189 | 157 | if ($bvinfo->hasValidDBVersion()) { |
| 190 | 158 | if ($bvinfo->isProtectModuleEnabled()) { |
| 191 | 159 | require_once dirname( __FILE__ ) . '/protect/protect.php'; |
| 192 | - //For backward compatibility. | |
| 193 | - WPRProtect_V573::$settings = new WPRWPSettings(); | |
| 194 | - WPRProtect_V573::$db = new WPRWPDb(); | |
| 195 | - WPRProtect_V573::$info = new WPRInfo(WPRProtect_V573::$settings); | |
| 196 | - | |
| 197 | - add_action('wpr_clear_pt_config', array('WPRProtect_V573', 'uninstall')); | |
| 198 | - | |
| 199 | - if ($bvinfo->isActivePlugin()) { | |
| 200 | - WPRProtect_V573::init(WPRProtect_V573::MODE_WP); | |
| 160 | + add_action('clear_pt_config', array('WPRProtect_V553', 'uninstall')); | |
| 161 | + if ($bvinfo->isActivePlugin() && !(defined( 'WP_CLI' ) && WP_CLI)) { | |
| 162 | + WPRProtect_V553::init(WPRProtect_V553::MODE_WP); | |
| 201 | 163 | } |
| 202 | 164 | } |
| 203 | 165 | |
| 204 | 166 | if ($bvinfo->isDynSyncModuleEnabled()) { |