PluginProbe
The WP Remote WordPress Plugin / 4.79
The WP Remote WordPress Plugin v4.79
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 | wp_actions.php +6 -36 6.694.79 View file →
@@ -15,9 +15,9 @@
15 15 $this->bvinfo = new WPRInfo($settings);
16 16 }
17 17
18 18 public function activate() {
19 - if (!isset($_REQUEST['blogvaultkey'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
19 + if (!isset($_REQUEST['blogvaultkey'])) {
20 20 ##BVKEYSLOCATE##
21 21 }
22 22 if (WPRAccount::isConfigured($this->settings)) {
23 23 /* This informs the server about the activation */
@@ -26,8 +26,9 @@
26 26 $this->bvapi->pingbv('/bvapi/activate', $info);
27 27 } else {
28 28 WPRAccount::setup($this->settings);
29 29 }
30 + ##ENABLECACHE##
30 31 }
31 32
32 33 public function deactivate() {
33 34 $info = array();
@@ -32,21 +33,17 @@
32 33 public function deactivate() {
33 34 $info = array();
34 35 $this->siteinfo->basic($info);
35 36 ##DISABLECACHE##
36 - $this->process_deactivation_feedback($info);
37 -
38 37 $this->bvapi->pingbv('/bvapi/deactivate', $info);
39 38 }
40 39
41 40 public static function uninstall() {
42 - do_action('wpr_clear_pt_config');
43 - do_action('wpr_clear_dynsync_config');
41 + do_action('clear_pt_config');
42 + do_action('clear_ip_store');
43 + do_action('clear_dynsync_config');
44 44 ##CLEARCACHECONFIG##
45 - do_action('wpr_clear_bv_services_config');
46 - do_action('wpr_clear_wp_2fa_config');
47 - do_action('wpr_remove_bv_preload_include');
48 - do_action('wpr_clear_php_error_config');
45 + do_action('clear_bv_services_config');
49 46 }
50 47
51 48 public function clear_bv_services_config() {
52 49 $this->settings->deleteOption($this->bvinfo->services_option_name);
@@ -51,18 +48,8 @@
51 48 public function clear_bv_services_config() {
52 49 $this->settings->deleteOption($this->bvinfo->services_option_name);
53 50 }
54 51
55 - public function clear_wp_2fa_config() {
56 - $meta_keys = array('wpr_2fa_enabled', 'wpr_2fa_secret', 'wpr_2fa_method', 'wpr_2fa_email_challenge', 'wpr_2fa_email_rate', 'wpr_2fa_attempts');
57 - foreach ($meta_keys as $meta_key) {
58 - $this->settings->deleteMetaData('user', null, $meta_key, '', true);
59 - }
60 -
61 - $this->settings->deleteOption(WPRWP2FA::$wp_2fa_option);
62 - }
63 -
64 -
65 52 ##SOUNINSTALLFUNCTION##
66 53
67 54 public function footerHandler() {
68 55 $bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo);
@@ -70,23 +57,6 @@
70 57 echo '<div style="max-width:150px;min-height:70px;margin:0 auto;text-align:center;position:relative;">
71 58 <a href='.esc_url($bvfooter['badgeurl']).' target="_blank" ><img src="'.esc_url(plugins_url($bvfooter['badgeimg'], __FILE__)).'" alt="'.esc_attr($bvfooter['badgealt']).'" /></a></div>';
72 59 }
73 60 }
74 -
75 - private function process_deactivation_feedback(&$info) {
76 - //phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
77 - if (!isset($_GET['bv_deactivation_assets']) || !is_string($_GET['bv_deactivation_assets'])) {
78 - return;
79 - }
80 -
81 - $deactivation_assets = wp_unslash($_GET['bv_deactivation_assets']);
82 - $info['deactivation_feedback'] = base64_encode($deactivation_assets);
83 - //phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
84 - }
85 -
86 - public function removeBVPreload() {
87 - $pattern = "@include '" . rtrim(ABSPATH, DIRECTORY_SEPARATOR) . "/bv-preload.php" . "';";
88 - WPRHelper::removePatternFromWpConfig($pattern);
89 - }
90 -
91 61 }
92 62 endif;