PluginProbe
The WP Remote WordPress Plugin / 5.72
The WP Remote WordPress Plugin v5.72
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
← All changes | plugin.php +17 -4 5.655.72 View file →
@@ -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.65
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()) {
@@ -181,11 +188,17 @@
181 188 } else {
182 189 if ($bvinfo->hasValidDBVersion()) {
183 190 if ($bvinfo->isProtectModuleEnabled()) {
184 191 require_once dirname( __FILE__ ) . '/protect/protect.php';
185 - add_action('clear_pt_config', array('WPRProtect_V565', 'uninstall'));
192 + //For backward compatibility.
193 + WPRProtect_V572::$settings = new WPRWPSettings();
194 + WPRProtect_V572::$db = new WPRWPDb();
195 + WPRProtect_V572::$info = new WPRInfo(WPRProtect_V572::$settings);
196 +
197 + add_action('wpr_clear_pt_config', array('WPRProtect_V572', 'uninstall'));
198 +
186 199 if ($bvinfo->isActivePlugin()) {
187 - WPRProtect_V565::init(WPRProtect_V565::MODE_WP);
200 + WPRProtect_V572::init(WPRProtect_V572::MODE_WP);
188 201 }
189 202 }
190 203
191 204 if ($bvinfo->isDynSyncModuleEnabled()) {