PluginProbe
The WP Remote WordPress Plugin / 4.84
The WP Remote WordPress Plugin v4.84
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 -75 5.474.84 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.47';
12 + public $brand_option = 'wprbrand';
13 + public $version = '4.84';
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';
@@ -17,12 +17,10 @@
17 17 public $plug_redirect = 'wprredirect';
18 18 public $logo = '../img/wprlogo.png';
19 19 public $brand_icon = '/img/icon.png';
20 20 public $services_option_name = 'wprconfig';
21 - public $author = 'WP Remote';
22 - public $title = 'WP Remote';
23 21
24 - const DB_VERSION = '4';
22 + const DB_VERSION = '3';
25 23
26 24 public function __construct($settings) {
27 25 $this->settings = $settings;
28 26 $this->config = $this->settings->getOption($this->services_option_name);
@@ -39,36 +37,8 @@
39 37 public function hasValidDBVersion() {
40 38 return WPRInfo::DB_VERSION === $this->getCurrentDBVersion();
41 39 }
42 40
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 - public function getLatestElementorDBVersion($file) {
61 - $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager';
62 -
63 - if (!class_exists($managerClass)) {
64 - return false;
65 - }
66 -
67 - $manager = new $managerClass();
68 - return $manager->get_new_version();
69 - }
70 -
71 41 public static function getRequestID() {
72 42 if (!defined("BV_REQUEST_ID")) {
73 43 define("BV_REQUEST_ID", uniqid(mt_rand()));
74 44 }
@@ -89,53 +59,14 @@
89 59
90 60 return false;
91 61 }
92 62
93 - public function canWhiteLabel($slug = NULL) {
94 - if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
95 - return false;
96 - }
97 - if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
98 - $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
99 - return false;
100 - }
101 - return true;
102 - }
103 -
104 - public function getPluginWhitelabelInfo($slug = null) {
105 - if ($slug === null) {
106 - $slug = $this->slug;
107 - }
108 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
109 - if (!array_key_exists($slug, $whitelabel_infos) || !is_array($whitelabel_infos[$slug])) {
110 - return array();
111 - }
112 - return $whitelabel_infos[$slug];
113 - }
114 -
115 63 public function getBrandInfo() {
116 64 return $this->settings->getOption($this->brand_option);
117 65 }
118 66
119 - public function getPluginsWhitelabelInfos() {
120 - $whitelabel_infos = $this->settings->getOption($this->brand_option);
121 - return is_array($whitelabel_infos) ? $whitelabel_infos : array();
122 - }
123 -
124 - public function getPluginsWhitelabelInfoByTitle() {
125 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
126 - $whitelabel_infos_by_title = array();
127 - foreach ($whitelabel_infos as $slug => $whitelabel_info) {
128 - if (is_array($whitelabel_info) && array_key_exists('default_title', $whitelabel_info) && isset($whitelabel_info['default_title'])) {
129 - $whitelabel_info['slug'] = $slug;
130 - $whitelabel_infos_by_title[$whitelabel_info['default_title']] = $whitelabel_info;
131 - }
132 - }
133 - return $whitelabel_infos_by_title;
134 - }
135 -
136 67 public function getBrandName() {
137 - $brand = $this->getPluginWhitelabelInfo();
68 + $brand = $this->getBrandInfo();
138 69 if (is_array($brand) && array_key_exists('menuname', $brand)) {
139 70 return $brand['menuname'];
140 71 }
141 72
@@ -142,9 +73,9 @@
142 73 return $this->brandname;
143 74 }
144 75
145 76 public function getBrandIcon() {
146 - $brand = $this->getPluginWhitelabelInfo();
77 + $brand = $this->getBrandInfo();
147 78 if (is_array($brand) && array_key_exists('brand_icon', $brand)) {
148 79 return $brand['brand_icon'];
149 80 }
150 81 return $this->brand_icon;
@@ -158,9 +89,9 @@
158 89 public function appUrl() {
159 90 if (defined('BV_APP_URL')) {
160 91 return BV_APP_URL;
161 92 } else {
162 - $brand = $this->getPluginWhitelabelInfo();
93 + $brand = $this->getBrandInfo();
163 94 if (is_array($brand) && array_key_exists('appurl', $brand)) {
164 95 return $brand['appurl'];
165 96 }
166 97 return $this->appurl;