The WP Remote WordPress Plugin - Version 4.68

Version Description

  • Removing use of constants for arrays for PHP 5.4 support.
  • Robust firewall-config checks.
Download this release

Release Info

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

Code changes from version 4.66 to 4.68

callback/base.php CHANGED
@@ -5,14 +5,14 @@ if (!class_exists('BVCallbackBase')) :
5
 
6
  class BVCallbackBase {
7
 
8
- const WING_INFOS = array("MANAGE_WING_VERSION" => '1.0',
9
  "ACTLOG_WING_VERSION" => '1.0',
10
  "DYNSYNC_WING_VERSION" => '1.0',
11
  "UPGRADER_WING_VERSION" => '1.0',
12
  "BRAND_WING_VERSION" => '1.0',
13
  "DB_WING_VERSION" => '1.0',
14
  "ACCOUNT_WING_VERSION" => '1.0',
15
- "MISC_WING_VERSION" => '1.0',
16
  "FS_WING_VERSION" => '1.0',
17
  "INFO_WING_VERSION" => '1.0',
18
  "WATCH_WING_VERSION" => '1.0',
5
 
6
  class BVCallbackBase {
7
 
8
+ public static $wing_infos = array("MANAGE_WING_VERSION" => '1.0',
9
  "ACTLOG_WING_VERSION" => '1.0',
10
  "DYNSYNC_WING_VERSION" => '1.0',
11
  "UPGRADER_WING_VERSION" => '1.0',
12
  "BRAND_WING_VERSION" => '1.0',
13
  "DB_WING_VERSION" => '1.0',
14
  "ACCOUNT_WING_VERSION" => '1.0',
15
+ "MISC_WING_VERSION" => '1.1',
16
  "FS_WING_VERSION" => '1.0',
17
  "INFO_WING_VERSION" => '1.0',
18
  "WATCH_WING_VERSION" => '1.0',
callback/handler.php CHANGED
@@ -92,6 +92,10 @@ if (!class_exists('BVCallbackHandler')) :
92
  require_once dirname( __FILE__ ) . '/wings/actlog.php';
93
  $module = new BVActLogCallback($this);
94
  break;
 
 
 
 
95
  default:
96
  require_once dirname( __FILE__ ) . '/wings/misc.php';
97
  $module = new BVMiscCallback($this);
92
  require_once dirname( __FILE__ ) . '/wings/actlog.php';
93
  $module = new BVActLogCallback($this);
94
  break;
95
+ case 'speed':
96
+ require_once dirname( __FILE__ ) . '/wings/speed.php';
97
+ $module = new BVSpeedCallback($this);
98
+ break;
99
  default:
100
  require_once dirname( __FILE__ ) . '/wings/misc.php';
101
  $module = new BVMiscCallback($this);
callback/wings/misc.php CHANGED
@@ -11,7 +11,7 @@ class BVMiscCallback extends BVCallbackBase {
11
  public $bvapi;
12
  public $db;
13
 
14
- const MISC_WING_VERSION = 1.0;
15
 
16
  public function __construct($callback_handler) {
17
  $this->settings = $callback_handler->settings;
@@ -49,7 +49,7 @@ class BVMiscCallback extends BVCallbackBase {
49
  }
50
 
51
  public function getWingInfo() {
52
- return array('wing_info' => self::WING_INFOS);
53
  }
54
 
55
  public function post_types_data($post_params) {
11
  public $bvapi;
12
  public $db;
13
 
14
+ const MISC_WING_VERSION = 1.1;
15
 
16
  public function __construct($callback_handler) {
17
  $this->settings = $callback_handler->settings;
49
  }
50
 
51
  public function getWingInfo() {
52
+ return array('wing_info' => self::$wing_infos);
53
  }
54
 
55
  public function post_types_data($post_params) {
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.66';
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.68';
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.66
9
  Network: True
10
  */
11
 
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.68
9
  Network: True
10
  */
11
 
protect/prepend/protect.php CHANGED
@@ -29,6 +29,10 @@ require_once dirname( __FILE__ ) . '/logger.php';
29
  $content = file_get_contents($fname);
30
  if (($content !== false) && is_string($content)) {
31
  $result = json_decode($content, true);
 
 
 
 
32
  }
33
  }
34
 
@@ -44,10 +48,6 @@ require_once dirname( __FILE__ ) . '/logger.php';
44
  return false;
45
  }
46
 
47
- if (empty($mcConf) || empty($mcIPsConf)) {
48
- return false;
49
- }
50
-
51
  $brand = array_key_exists('brandname', $mcConf) ? $mcConf['brandname'] : "Protect";
52
  $bvinfo = new BVPrependInfo($brand);
53
  $bvipstore = new BVPrependIPStore($mcIPsConf);
29
  $content = file_get_contents($fname);
30
  if (($content !== false) && is_string($content)) {
31
  $result = json_decode($content, true);
32
+
33
+ if (!is_array($result)) {
34
+ $result = array();
35
+ }
36
  }
37
  }
38
 
48
  return false;
49
  }
50
 
 
 
 
 
51
  $brand = array_key_exists('brandname', $mcConf) ? $mcConf['brandname'] : "Protect";
52
  $bvinfo = new BVPrependInfo($brand);
53
  $bvipstore = new BVPrependIPStore($mcIPsConf);
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.8
8
  Requires PHP: 5.4.0
9
- Stable tag: 4.66
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,10 @@ 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.66 =
36
  * Post type fetch improvement.
37
  * Handing wing version for ipstore wing.
6
  Requires at least: 4.0
7
  Tested up to: 5.8
8
  Requires PHP: 5.4.0
9
+ Stable tag: 4.68
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.68 =
36
+ * Removing use of constants for arrays for PHP 5.4 support.
37
+ * Robust firewall-config checks.
38
+
39
  = 4.66 =
40
  * Post type fetch improvement.
41
  * Handing wing version for ipstore wing.