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 | callback/wings/info.php +2 -37 5.474.84 View file →
@@ -9,9 +9,9 @@
9 9 public $siteinfo;
10 10 public $bvinfo;
11 11 public $bvapi;
12 12
13 - const INFO_WING_VERSION = 2.0;
13 + const INFO_WING_VERSION = 1.5;
14 14
15 15 public function __construct($callback_handler) {
16 16 $this->db = $callback_handler->db;
17 17 $this->siteinfo = $callback_handler->siteinfo;
@@ -44,27 +44,8 @@
44 44 "comments" => get_object_vars(wp_count_comments())
45 45 );
46 46 }
47 47
48 - public function addDBInfoToPlugin($pdata, $plugin_file) {
49 - switch ($plugin_file) {
50 - case "woocommerce/woocommerce.php":
51 - $pdata['current_db_version'] = $this->settings->getOption('woocommerce_db_version');
52 - $pdata['latest_db_version'] = $this->bvinfo->getLatestWooCommerceDBVersion();
53 - break;
54 - case "elementor/elementor.php":
55 - $pdata['current_db_version'] = $this->settings->getOption('elementor_version');
56 - $pdata['latest_db_version'] = $this->bvinfo->getLatestElementorDBVersion($plugin_file);
57 - break;
58 - case "elementor-pro/elementor-pro.php":
59 - $pdata['current_db_version'] = $this->settings->getOption('elementor_pro_version');
60 - $pdata['latest_db_version'] = $this->bvinfo->getLatestElementorDBVersion($plugin_file);
61 - break;
62 - }
63 -
64 - return $pdata;
65 - }
66 -
67 48 public function getPlugins() {
68 49 if (!function_exists('get_plugins')) {
69 50 require_once (ABSPATH."wp-admin/includes/plugin.php");
70 51 }
@@ -77,9 +58,8 @@
77 58 'version' => $plugin_data['Version'],
78 59 'active' => is_plugin_active($plugin_file),
79 60 'network' => $plugin_data['Network']
80 61 );
81 - $pdata = $this->addDBInfoToPlugin($pdata, $plugin_file);
82 62 $result["plugins"][] = $pdata;
83 63 }
84 64 return $result;
85 65 }
@@ -381,19 +361,8 @@
381 361
382 362 return $result;
383 363 }
384 364
385 - function getCoreHandler() {
386 - global $wp_db_version, $wp_version;
387 -
388 - $result = $this->getTransient('update_core');
389 - $result['current_db_version'] = $this->settings->getOption('db_version');
390 - $result['latest_db_version'] = $wp_db_version;
391 - $result['wp_version'] = $wp_version;
392 -
393 - return $result;
394 - }
395 -
396 365 function getSiteInfo($args) {
397 366 $result = array();
398 367
399 368 if (array_key_exists('pre_refresh_get_options', $args)) {
@@ -414,9 +383,9 @@
414 383 if (array_key_exists('themes', $args))
415 384 $result['themes'] = $this->getThemesHandler($args['themes']);
416 385
417 386 if (array_key_exists('core', $args))
418 - $result['core'] = $this->getCoreHandler();
387 + $result['core'] = $this->getTransient('update_core');
419 388
420 389 if (array_key_exists('sys', $args))
421 390 $result['sys'] = $this->getSystemInfo();
422 391
@@ -494,12 +463,8 @@
494 463 $resp = $this->getPosts($params['post_type'], $count);
495 464 break;
496 465 case "gtsts":
497 466 $resp = $this->getStats();
498 - break;
499 - case "gtdbvariables":
500 - $variable = (array_key_exists('variable', $params)) ? $params['variable'] : "";
501 - $resp = $this->db->showDbVariables($variable);
502 467 break;
503 468 case "gtplgs":
504 469 $resp = $this->getPlugins();
505 470 break;