The WP Remote WordPress Plugin - Version 4.73

Version Description

  • Improvements in identifying plugin updates.
Download this release

Release Info

Developer ritesh.soni36
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 4.73
Comparing to
See all releases

Code changes from version 4.72 to 4.73

Files changed (8) hide show
  1. account.php +8 -2
  2. callback/base.php +1 -1
  3. callback/wings/info.php +10 -1
  4. info.php +1 -1
  5. plugin.php +4 -1
  6. readme.txt +4 -1
  7. wp_actions.php +5 -0
  8. wp_api.php +3 -3
account.php CHANGED
@@ -191,7 +191,6 @@ if (!class_exists('WPRAccount')) :
191
 
192
  public function updateInfo($info) {
193
  $accounts = self::allAccounts($this->settings);
194
- $plugname = $info["plugname"];
195
  $account_type = $info["account_type"];
196
  $pubkey = $info['pubkey'];
197
  if (!array_key_exists($pubkey, $accounts)) {
@@ -202,7 +201,14 @@ if (!class_exists('WPRAccount')) :
202
  }
203
  $accounts[$pubkey]['account_gid'] = $info['account_gid'];
204
  $accounts[$pubkey]['lastbackuptime'] = time();
205
- $accounts[$pubkey][$plugname] = true;
 
 
 
 
 
 
 
206
  $accounts[$pubkey]['account_type'] = $account_type;
207
  $accounts[$pubkey]['url'] = $info['url'];
208
  $accounts[$pubkey]['email'] = $info['email'];
191
 
192
  public function updateInfo($info) {
193
  $accounts = self::allAccounts($this->settings);
 
194
  $account_type = $info["account_type"];
195
  $pubkey = $info['pubkey'];
196
  if (!array_key_exists($pubkey, $accounts)) {
201
  }
202
  $accounts[$pubkey]['account_gid'] = $info['account_gid'];
203
  $accounts[$pubkey]['lastbackuptime'] = time();
204
+ if (isset($info["speed_plugname"])) {
205
+ $speed_plugname = $info["speed_plugname"];
206
+ $accounts[$pubkey][$speed_plugname] = true;
207
+ }
208
+ if (isset($info["plugname"])) {
209
+ $plugname = $info["plugname"];
210
+ $accounts[$pubkey][$plugname] = true;
211
+ }
212
  $accounts[$pubkey]['account_type'] = $account_type;
213
  $accounts[$pubkey]['url'] = $info['url'];
214
  $accounts[$pubkey]['email'] = $info['email'];
callback/base.php CHANGED
@@ -14,7 +14,7 @@ class BVCallbackBase {
14
  "ACCOUNT_WING_VERSION" => '1.1',
15
  "MISC_WING_VERSION" => '1.1',
16
  "FS_WING_VERSION" => '1.0',
17
- "INFO_WING_VERSION" => '1.2',
18
  "WATCH_WING_VERSION" => '1.0',
19
  "FS_WRITE_WING_VERSION" => '1.0',
20
  "IPSTORE_WING_VERSION" => '1.0',
14
  "ACCOUNT_WING_VERSION" => '1.1',
15
  "MISC_WING_VERSION" => '1.1',
16
  "FS_WING_VERSION" => '1.0',
17
+ "INFO_WING_VERSION" => '1.3',
18
  "WATCH_WING_VERSION" => '1.0',
19
  "FS_WRITE_WING_VERSION" => '1.0',
20
  "IPSTORE_WING_VERSION" => '1.0',
callback/wings/info.php CHANGED
@@ -10,7 +10,7 @@ class BVInfoCallback extends BVCallbackBase {
10
  public $bvinfo;
11
  public $bvapi;
12
 
13
- const INFO_WING_VERSION = 1.2;
14
 
15
  public function __construct($callback_handler) {
16
  $this->db = $callback_handler->db;
@@ -333,6 +333,12 @@ class BVInfoCallback extends BVCallbackBase {
333
  function getSiteInfo($args) {
334
  $result = array();
335
 
 
 
 
 
 
 
336
  if (array_key_exists('refresh', $args))
337
  $result['refreshed'] = $this->refreshUpdatesInfo();
338
 
@@ -351,6 +357,9 @@ class BVInfoCallback extends BVCallbackBase {
351
  if (array_key_exists('sys', $args))
352
  $result['sys'] = $this->getSystemInfo();
353
 
 
 
 
354
  return $result;
355
  }
356
 
10
  public $bvinfo;
11
  public $bvapi;
12
 
13
+ const INFO_WING_VERSION = 1.3;
14
 
15
  public function __construct($callback_handler) {
16
  $this->db = $callback_handler->db;
333
  function getSiteInfo($args) {
334
  $result = array();
335
 
336
+ if (array_key_exists('pre_refresh_get_options', $args)) {
337
+ $result['pre_refresh_get_options'] = $this->settings->getOptions(
338
+ $args['pre_refresh_get_options']
339
+ );
340
+ }
341
+
342
  if (array_key_exists('refresh', $args))
343
  $result['refreshed'] = $this->refreshUpdatesInfo();
344
 
357
  if (array_key_exists('sys', $args))
358
  $result['sys'] = $this->getSystemInfo();
359
 
360
+ if (array_key_exists('get_options', $args))
361
+ $result['get_options'] = $this->settings->getOptions($args['get_options']);
362
+
363
  return $result;
364
  }
365
 
info.php CHANGED
@@ -10,7 +10,7 @@ if (!class_exists('WPRInfo')) :
10
  public $badgeinfo = 'wprbadge';
11
  public $ip_header_option = 'wpripheader';
12
  public $brand_option = 'wprbrand';
13
- public $version = '4.72';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
10
  public $badgeinfo = 'wprbadge';
11
  public $ip_header_option = 'wpripheader';
12
  public $brand_option = 'wprbrand';
13
+ public $version = '4.73';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
plugin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpremote.com
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
6
  Author: WP Remote
7
  Author URI: https://wpremote.com
8
- Version: 4.72
9
  Network: True
10
  */
11
 
@@ -37,6 +37,7 @@ require_once dirname( __FILE__ ) . '/wp_api.php';
37
  require_once dirname( __FILE__ ) . '/wp_actions.php';
38
  require_once dirname( __FILE__ ) . '/info.php';
39
  require_once dirname( __FILE__ ) . '/account.php';
 
40
 
41
 
42
  $bvsettings = new WPRWPSettings();
@@ -54,6 +55,7 @@ register_deactivation_hook(__FILE__, array($wp_action, 'deactivate'));
54
 
55
  add_action('wp_footer', array($wp_action, 'footerHandler'), 100);
56
  add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config'));
 
57
 
58
  ##WPCLIMODULE##
59
  if (is_admin()) {
@@ -71,6 +73,7 @@ if (is_admin()) {
71
  add_action('admin_head', array($wpadmin, 'removeAdminNotices'), 3);
72
  add_action('admin_notices', array($wpadmin, 'activateWarning'));
73
  add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu'));
 
74
  }
75
 
76
 
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
6
  Author: WP Remote
7
  Author URI: https://wpremote.com
8
+ Version: 4.73
9
  Network: True
10
  */
11
 
37
  require_once dirname( __FILE__ ) . '/wp_actions.php';
38
  require_once dirname( __FILE__ ) . '/info.php';
39
  require_once dirname( __FILE__ ) . '/account.php';
40
+ ##WPCACHEMODULE##
41
 
42
 
43
  $bvsettings = new WPRWPSettings();
55
 
56
  add_action('wp_footer', array($wp_action, 'footerHandler'), 100);
57
  add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config'));
58
+ ##SOADDUNINSTALLACTION##
59
 
60
  ##WPCLIMODULE##
61
  if (is_admin()) {
73
  add_action('admin_head', array($wpadmin, 'removeAdminNotices'), 3);
74
  add_action('admin_notices', array($wpadmin, 'activateWarning'));
75
  add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu'));
76
+ ##SOADMINMENU##
77
  }
78
 
79
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://app.wpremote.com/home/signup
6
  Requires at least: 4.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.4.0
9
- Stable tag: 4.72
10
  License: GPLv2 or later
11
  License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
12
 
@@ -32,6 +32,9 @@ You can email us at support@wpremote.com for support.
32
  3. Sign up for an account at wpremote.com and add your site.
33
 
34
  == CHANGELOG ==
 
 
 
35
  = 4.72 =
36
  * Sync Improvements
37
  * Enhanced plugin activate flow.
6
  Requires at least: 4.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.4.0
9
+ Stable tag: 4.73
10
  License: GPLv2 or later
11
  License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
12
 
32
  3. Sign up for an account at wpremote.com and add your site.
33
 
34
  == CHANGELOG ==
35
+ = 4.73 =
36
+ * Improvements in identifying plugin updates.
37
+
38
  = 4.72 =
39
  * Sync Improvements
40
  * Enhanced plugin activate flow.
wp_actions.php CHANGED
@@ -27,11 +27,13 @@ if (!class_exists('WPRWPAction')) :
27
  } else {
28
  WPRAccount::setup($this->settings);
29
  }
 
30
  }
31
 
32
  public function deactivate() {
33
  $info = array();
34
  $this->siteinfo->basic($info);
 
35
  $this->bvapi->pingbv('/bvapi/deactivate', $info);
36
  }
37
 
@@ -39,6 +41,7 @@ if (!class_exists('WPRWPAction')) :
39
  do_action('clear_pt_config');
40
  do_action('clear_ip_store');
41
  do_action('clear_dynsync_config');
 
42
  do_action('clear_bv_services_config');
43
  }
44
 
@@ -46,6 +49,8 @@ if (!class_exists('WPRWPAction')) :
46
  $this->settings->deleteOption($this->bvinfo->services_option_name);
47
  }
48
 
 
 
49
  public function footerHandler() {
50
  $bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo);
51
  if ($bvfooter) {
27
  } else {
28
  WPRAccount::setup($this->settings);
29
  }
30
+ ##ENABLECACHE##
31
  }
32
 
33
  public function deactivate() {
34
  $info = array();
35
  $this->siteinfo->basic($info);
36
+ ##DISABLECACHE##
37
  $this->bvapi->pingbv('/bvapi/deactivate', $info);
38
  }
39
 
41
  do_action('clear_pt_config');
42
  do_action('clear_ip_store');
43
  do_action('clear_dynsync_config');
44
+ ##CLEARCACHECONFIG##
45
  do_action('clear_bv_services_config');
46
  }
47
 
49
  $this->settings->deleteOption($this->bvinfo->services_option_name);
50
  }
51
 
52
+ ##SOUNINSTALLFUNCTION##
53
+
54
  public function footerHandler() {
55
  $bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo);
56
  if ($bvfooter) {
wp_api.php CHANGED
@@ -11,11 +11,11 @@ if (!class_exists('WPRWPAPI')) :
11
 
12
  public function pingbv($method, $body, $public = false) {
13
  if ($public) {
14
- $this->do_request($method, $body, $public);
15
  } else {
16
  $api_public_key = $this->settings->getOption('bvApiPublic');
17
  if (!empty($api_public_key) && (strlen($api_public_key) >= 32)) {
18
- $this->do_request($method, $body, $api_public_key);
19
  }
20
  }
21
  }
@@ -24,7 +24,7 @@ if (!class_exists('WPRWPAPI')) :
24
  $account = WPRAccount::find($this->settings, $pubkey);
25
  if (isset($account)) {
26
  $url = $account->authenticatedUrl($method);
27
- $this->http_request($url, $body);
28
  }
29
  }
30
 
11
 
12
  public function pingbv($method, $body, $public = false) {
13
  if ($public) {
14
+ return $this->do_request($method, $body, $public);
15
  } else {
16
  $api_public_key = $this->settings->getOption('bvApiPublic');
17
  if (!empty($api_public_key) && (strlen($api_public_key) >= 32)) {
18
+ return $this->do_request($method, $body, $api_public_key);
19
  }
20
  }
21
  }
24
  $account = WPRAccount::find($this->settings, $pubkey);
25
  if (isset($account)) {
26
  $url = $account->authenticatedUrl($method);
27
+ return $this->http_request($url, $body);
28
  }
29
  }
30