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 | callback/wings/misc.php +3 -43 6.724.86 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2
3 3 if (!defined('ABSPATH')) exit;
4 -if (!class_exists('WPRMiscCallback')) :
4 +if (!class_exists('BVMiscCallback')) :
5 5
6 -class WPRMiscCallback extends WPRCallbackBase {
6 +class BVMiscCallback extends BVCallbackBase {
7 7 public $settings;
8 8 public $bvinfo;
9 9 public $siteinfo;
10 10 public $account;
@@ -10,9 +10,9 @@
10 10 public $account;
11 11 public $bvapi;
12 12 public $db;
13 13
14 - const MISC_WING_VERSION = 1.4;
14 + const MISC_WING_VERSION = 1.2;
15 15
16 16 public function __construct($callback_handler) {
17 17 $this->settings = $callback_handler->settings;
18 18 $this->siteinfo = $callback_handler->siteinfo;
@@ -151,11 +151,8 @@
151 151 case "phpinfo":
152 152 phpinfo();
153 153 die();
154 154 break;
155 - case "wpnonce":
156 - $resp = array("wpnonce" => wp_create_nonce($params["wpnonce_action"]));
157 - break;
158 155 case "dlttrsnt":
159 156 $resp = array("dlttrsnt" => $settings->deleteTransient($params['key']));
160 157 break;
161 158 case "optns":
@@ -206,18 +203,8 @@
206 203 $resp['taxonomy_cp_results'] = $taxonomy_result['taxonomy_data'];
207 204 $resp['taxonomies'] = $taxonomy_result['taxonomies'];
208 205 }
209 206 break;
210 -
211 - case "get_post_ids":
212 - if (array_key_exists('urls', $params)) {
213 - $resp = array();
214 - foreach ( $params['urls'] as $url ) {
215 - $resp[$url] = url_to_postid($url);
216 - }
217 - }
218 - break;
219 -
220 207 case "permalink":
221 208 if (array_key_exists('post_ids', $params)) {
222 209 $resp = array();
223 210 foreach ( $params['post_ids'] as $id ) {
@@ -223,35 +210,8 @@
223 210 foreach ( $params['post_ids'] as $id ) {
224 211 $resp[$id]['url'] = get_permalink($id);
225 212 }
226 213 }
227 - break;
228 - case "stwplpwhtlbl":
229 - $option = $bvinfo->wp_lp_whitelabel_option;
230 - $info = array();
231 -
232 - if (isset($params['logoFile'])) {
233 - $info['logo'] = $params['logoFile'];
234 - }
235 -
236 - if (isset($params['label'])) {
237 - $info['label'] = $params['label'];
238 - }
239 -
240 - if (isset($params['errorMessage'])) {
241 - $info['2fa_error_message'] = $params['errorMessage'];
242 - }
243 -
244 - if (isset($params['tooltip'])) {
245 - $info['2fa_tooltip'] = $params['tooltip'];
246 - }
247 -
248 - $resp = array("status" => $settings->updateOption($option, $info));
249 - break;
250 - case "dsblwplpwhtlbl":
251 - $option = $bvinfo->wp_lp_whitelabel_option;
252 - $settings->deleteOption($option);
253 - $resp = array("status" => !$settings->getOption($option));
254 214 break;
255 215 default:
256 216 $resp = false;
257 217 }