PluginProbe
The WP Remote WordPress Plugin / 6.44
The WP Remote WordPress Plugin v6.44
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 +12 -35 6.656.44 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: 6.65
8 +Version: 6.44
9 9 Network: True
10 10 License: GPLv2 or later
11 11 License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
12 12 */
@@ -69,9 +69,8 @@
69 69
70 70 ##DISABLE_OTHER_OPTIMIZATION_PLUGINS##
71 71
72 72 ##WPCLIMODULE##
73 -
74 73 if (is_admin()) {
75 74 require_once dirname( __FILE__ ) . '/wp_admin.php';
76 75 $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo);
77 76 add_action('admin_init', array($wpadmin, 'initHandler'));
@@ -89,8 +88,10 @@
89 88 ##MG_AJAX_ACTIONS##
90 89 ##POPUP_ON_DEACTIVATION##
91 90 add_action('admin_notices', array($wpadmin, 'activateWarning'));
92 91 add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu'));
92 + ##ALPURGECACHEFUNCTION##
93 + ##ALADMINMENU##
93 94 }
94 95
95 96 if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended
96 97 $_REQUEST = array_merge($_GET, $_POST); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended
@@ -125,11 +126,9 @@
125 126 $pubkey = isset($pubkey) ? WPRAccount::sanitizeKey($pubkey) : '';
126 127 $rcvracc = WPRHelper::getRawParam('REQUEST', 'rcvracc');
127 128
128 129 if (isset($rcvracc)) {
129 - $bvctag = WPRHelper::getRawParam('REQUEST', 'bvctag');
130 - $bvctag = isset($bvctag) ? WPRAccount::sanitizeKey($bvctag) : null;
131 - $account = WPRRecover::find($bvsettings, $pubkey, $bvctag);
130 + $account = WPRRecover::find($bvsettings, $pubkey);
132 131 } else {
133 132 $account = WPRAccount::find($bvsettings, $pubkey);
134 133 }
135 134
@@ -154,11 +153,9 @@
154 153 $response->terminate($request->corruptedParamsResp());
155 154 }
156 155 $request->params = $params;
157 156 $callback_handler = new WPRCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
158 - if ($request->is_aftershutdown) {
159 - $callback_handler->deferExecutionUntilShutdown();
160 - } else if ($request->is_afterload) {
157 + if ($request->is_afterload) {
161 158 add_action('wp_loaded', array($callback_handler, 'execute'));
162 159 } else if ($request->is_admin_ajax) {
163 160 add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser'));
164 161 add_action('wp_ajax_nopriv_bvadm', array($callback_handler, 'bvAdmExecuteWithoutUser'));
@@ -173,16 +170,16 @@
173 170 if ($bvinfo->hasValidDBVersion()) {
174 171 if ($bvinfo->isProtectModuleEnabled()) {
175 172 require_once dirname( __FILE__ ) . '/protect/protect.php';
176 173 //For backward compatibility.
177 - WPRProtect_V665::$settings = new WPRWPSettings();
178 - WPRProtect_V665::$db = new WPRWPDb();
179 - WPRProtect_V665::$info = new WPRInfo(WPRProtect_V665::$settings);
174 + WPRProtect_V644::$settings = new WPRWPSettings();
175 + WPRProtect_V644::$db = new WPRWPDb();
176 + WPRProtect_V644::$info = new WPRInfo(WPRProtect_V644::$settings);
180 177
181 - add_action('wpr_clear_pt_config', array('WPRProtect_V665', 'uninstall'));
178 + add_action('wpr_clear_pt_config', array('WPRProtect_V644', 'uninstall'));
182 179
183 180 if ($bvinfo->isActivePlugin()) {
184 - WPRProtect_V665::init(WPRProtect_V665::MODE_WP);
181 + WPRProtect_V644::init(WPRProtect_V644::MODE_WP);
185 182 }
186 183 }
187 184
188 185 if ($bvinfo->isDynSyncModuleEnabled()) {
@@ -193,9 +190,9 @@
193 190 }
194 191
195 192 }
196 193 $bv_site_settings = $bvsettings->getOption('bv_site_settings');
197 - if (is_array($bv_site_settings)) {
194 + if (isset($bv_site_settings)) {
198 195 if (isset($bv_site_settings['wp_auto_updates'])) {
199 196 $wp_auto_updates = $bv_site_settings['wp_auto_updates'];
200 197 if (array_key_exists('block_auto_update_core', $wp_auto_updates)) {
201 198 add_filter('auto_update_core', '__return_false' );
@@ -211,28 +208,8 @@
211 208 if (array_key_exists('block_auto_update_translation', $wp_auto_updates)) {
212 209 add_filter('auto_update_translation', '__return_false' );
213 210 }
214 211 }
215 -
216 - if (isset($bv_site_settings['security_hardening'])) {
217 - $bv_security_hardening = $bv_site_settings['security_hardening'];
218 - if (is_array($bv_security_hardening) &&
219 - isset($bv_security_hardening['version']) &&
220 - $bv_security_hardening['version'] === 1) {
221 - if (isset($bv_security_hardening['disable_file_editor']) &&
222 - $bv_security_hardening['disable_file_editor'] === true &&
223 - !defined('DISALLOW_FILE_EDIT')) {
224 - define('DISALLOW_FILE_EDIT', true);
225 - }
226 -
227 - if (isset($bv_security_hardening['block_file_modifications']) &&
228 - $bv_security_hardening['block_file_modifications'] === true &&
229 - !defined('DISALLOW_FILE_MODS')) {
230 - define('DISALLOW_FILE_MODS', true);
231 - }
232 - }
233 - }
234 -
235 212 }
236 213
237 214 if (is_admin()) {
238 215 add_filter('site_transient_update_plugins', array($wpadmin, 'hidePluginUpdate'));
@@ -251,5 +228,5 @@
251 228 $wp_login_whitelabel->init();
252 229 }
253 230
254 231 add_action('wpr_clear_wp_2fa_config', array($wp_action, 'clear_wp_2fa_config'));
255 -##PLUGIN_LOADED_MODULE##
232 +##PLUGIN_LOADED_MODULE##