PluginProbe
The WP Remote WordPress Plugin / 4.86
The WP Remote WordPress Plugin v4.86
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 | info.php +6 -62 5.424.86 View file →
@@ -8,10 +8,10 @@
8 8 public $plugname = 'wpremote';
9 9 public $brandname = 'WP Remote';
10 10 public $badgeinfo = 'wprbadge';
11 11 public $ip_header_option = 'wpripheader';
12 - public $brand_option = 'bv_whitelabel_infos';
13 - public $version = '5.42';
12 + public $brand_option = 'wprbrand';
13 + public $version = '4.86';
14 14 public $webpage = 'https://wpremote.com';
15 15 public $appurl = 'https://app.wpremote.com';
16 16 public $slug = 'wpremote/plugin.php';
17 17 public $plug_redirect = 'wprredirect';
@@ -20,9 +20,9 @@
20 20 public $services_option_name = 'wprconfig';
21 21 public $author = 'WP Remote';
22 22 public $title = 'WP Remote';
23 23
24 - const DB_VERSION = '4';
24 + const DB_VERSION = '3';
25 25
26 26 public function __construct($settings) {
27 27 $this->settings = $settings;
28 28 $this->config = $this->settings->getOption($this->services_option_name);
@@ -39,25 +39,8 @@
39 39 public function hasValidDBVersion() {
40 40 return WPRInfo::DB_VERSION === $this->getCurrentDBVersion();
41 41 }
42 42
43 - public function getLatestWooCommerceDBVersion() {
44 - if (defined('WC_ABSPATH') && file_exists(WC_ABSPATH . 'includes/class-wc-install.php')) {
45 - include_once WC_ABSPATH . 'includes/class-wc-install.php';
46 -
47 - if (class_exists('WC_Install')) {
48 - $update_versions = array_keys(WC_Install::get_db_update_callbacks());
49 -
50 - if (!empty($update_versions)) {
51 - asort($update_versions);
52 - return end($update_versions);
53 - }
54 - }
55 - }
56 -
57 - return false;
58 - }
59 -
60 43 public static function getRequestID() {
61 44 if (!defined("BV_REQUEST_ID")) {
62 45 define("BV_REQUEST_ID", uniqid(mt_rand()));
63 46 }
@@ -78,53 +61,14 @@
78 61
79 62 return false;
80 63 }
81 64
82 - public function canWhiteLabel($slug = NULL) {
83 - if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
84 - return false;
85 - }
86 - if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
87 - $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
88 - return false;
89 - }
90 - return true;
91 - }
92 -
93 - public function getPluginWhitelabelInfo($slug = null) {
94 - if ($slug === null) {
95 - $slug = $this->slug;
96 - }
97 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
98 - if (!array_key_exists($slug, $whitelabel_infos) || !is_array($whitelabel_infos[$slug])) {
99 - return array();
100 - }
101 - return $whitelabel_infos[$slug];
102 - }
103 -
104 65 public function getBrandInfo() {
105 66 return $this->settings->getOption($this->brand_option);
106 67 }
107 68
108 - public function getPluginsWhitelabelInfos() {
109 - $whitelabel_infos = $this->settings->getOption($this->brand_option);
110 - return is_array($whitelabel_infos) ? $whitelabel_infos : array();
111 - }
112 -
113 - public function getPluginsWhitelabelInfoByTitle() {
114 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
115 - $whitelabel_infos_by_title = array();
116 - foreach ($whitelabel_infos as $slug => $whitelabel_info) {
117 - if (is_array($whitelabel_info) && array_key_exists('default_title', $whitelabel_info) && isset($whitelabel_info['default_title'])) {
118 - $whitelabel_info['slug'] = $slug;
119 - $whitelabel_infos_by_title[$whitelabel_info['default_title']] = $whitelabel_info;
120 - }
121 - }
122 - return $whitelabel_infos_by_title;
123 - }
124 -
125 69 public function getBrandName() {
126 - $brand = $this->getPluginWhitelabelInfo();
70 + $brand = $this->getBrandInfo();
127 71 if (is_array($brand) && array_key_exists('menuname', $brand)) {
128 72 return $brand['menuname'];
129 73 }
130 74
@@ -131,9 +75,9 @@
131 75 return $this->brandname;
132 76 }
133 77
134 78 public function getBrandIcon() {
135 - $brand = $this->getPluginWhitelabelInfo();
79 + $brand = $this->getBrandInfo();
136 80 if (is_array($brand) && array_key_exists('brand_icon', $brand)) {
137 81 return $brand['brand_icon'];
138 82 }
139 83 return $this->brand_icon;
@@ -147,9 +91,9 @@
147 91 public function appUrl() {
148 92 if (defined('BV_APP_URL')) {
149 93 return BV_APP_URL;
150 94 } else {
151 - $brand = $this->getPluginWhitelabelInfo();
95 + $brand = $this->getBrandInfo();
152 96 if (is_array($brand) && array_key_exists('appurl', $brand)) {
153 97 return $brand['appurl'];
154 98 }
155 99 return $this->appurl;