| @@ -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.62 | |
| 8 | +Version: 5.92 | |
| 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')); |
| @@ -84,13 +83,13 @@ | ||
| 84 | 83 | add_action('admin_menu', array($wpadmin, 'menu')); |
| 85 | 84 | } |
| 86 | 85 | add_filter('plugin_action_links', array($wpadmin, 'settingsLink'), 10, 2); |
| 87 | 86 | add_action('admin_head', array($wpadmin, 'removeAdminNotices'), 3); |
| 88 | - | |
| 89 | - ##MG_AJAX_ACTIONS## | |
| 90 | 87 | ##POPUP_ON_DEACTIVATION## |
| 91 | 88 | add_action('admin_notices', array($wpadmin, 'activateWarning')); |
| 92 | 89 | add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu')); |
| 90 | + ##ALPURGECACHEFUNCTION## | |
| 91 | + ##ALADMINMENU## | |
| 93 | 92 | } |
| 94 | 93 | |
| 95 | 94 | if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended |
| 96 | 95 | $_REQUEST = array_merge($_GET, $_POST); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended |
| @@ -130,10 +129,10 @@ | ||
| 130 | 129 | } else { |
| 131 | 130 | $account = WPRAccount::find($bvsettings, $pubkey); |
| 132 | 131 | } |
| 133 | 132 | |
| 134 | - $request = new WPRCallbackRequest($account, $_REQUEST, $bvsettings); // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 135 | - $response = new WPRCallbackResponse($request->bvb64cksize); | |
| 133 | + $request = new BVCallbackRequest($account, $_REQUEST, $bvsettings); // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 134 | + $response = new BVCallbackResponse($request->bvb64cksize); | |
| 136 | 135 | |
| 137 | 136 | if ($request->authenticate() === 1) { |
| 138 | 137 | $bv_frm_tstng = WPRHelper::getRawParam('REQUEST', 'bv_frm_tstng'); |
| 139 | 138 | if (isset($bv_frm_tstng)) { |
| @@ -151,9 +150,9 @@ | ||
| 151 | 150 | if ($params === false) { |
| 152 | 151 | $response->terminate($request->corruptedParamsResp()); |
| 153 | 152 | } |
| 154 | 153 | $request->params = $params; |
| 155 | - $callback_handler = new WPRCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response); | |
| 154 | + $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response); | |
| 156 | 155 | if ($request->is_afterload) { |
| 157 | 156 | add_action('wp_loaded', array($callback_handler, 'execute')); |
| 158 | 157 | } else if ($request->is_admin_ajax) { |
| 159 | 158 | add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser')); |
| @@ -169,16 +168,16 @@ | ||
| 169 | 168 | if ($bvinfo->hasValidDBVersion()) { |
| 170 | 169 | if ($bvinfo->isProtectModuleEnabled()) { |
| 171 | 170 | require_once dirname( __FILE__ ) . '/protect/protect.php'; |
| 172 | 171 | //For backward compatibility. |
| 173 | - WPRProtect_V662::$settings = new WPRWPSettings(); | |
| 174 | - WPRProtect_V662::$db = new WPRWPDb(); | |
| 175 | - WPRProtect_V662::$info = new WPRInfo(WPRProtect_V662::$settings); | |
| 172 | + WPRProtect_V592::$settings = new WPRWPSettings(); | |
| 173 | + WPRProtect_V592::$db = new WPRWPDb(); | |
| 174 | + WPRProtect_V592::$info = new WPRInfo(WPRProtect_V592::$settings); | |
| 176 | 175 | |
| 177 | - add_action('wpr_clear_pt_config', array('WPRProtect_V662', 'uninstall')); | |
| 176 | + add_action('wpr_clear_pt_config', array('WPRProtect_V592', 'uninstall')); | |
| 178 | 177 | |
| 179 | 178 | if ($bvinfo->isActivePlugin()) { |
| 180 | - WPRProtect_V662::init(WPRProtect_V662::MODE_WP); | |
| 179 | + WPRProtect_V592::init(WPRProtect_V592::MODE_WP); | |
| 181 | 180 | } |
| 182 | 181 | } |
| 183 | 182 | |
| 184 | 183 | if ($bvinfo->isDynSyncModuleEnabled()) { |
| @@ -226,6 +225,5 @@ | ||
| 226 | 225 | $wp_login_whitelabel = new WPRWPLoginWhitelabel(); |
| 227 | 226 | $wp_login_whitelabel->init(); |
| 228 | 227 | } |
| 229 | 228 | |
| 230 | -add_action('wpr_clear_wp_2fa_config', array($wp_action, 'clear_wp_2fa_config')); | |
| 231 | -##PLUGIN_LOADED_MODULE## | |
| 229 | +add_action('wpr_clear_wp_2fa_config', array($wp_action, 'clear_wp_2fa_config')); | |