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 | wp_admin.php +2 -42 4.974.84 View file →
@@ -72,19 +72,8 @@
72 72 array($this, 'adminPage'), plugins_url($icon, __FILE__ ));
73 73 }
74 74 }
75 75
76 - public function hidePluginUpdate($plugins) {
77 - $brand = $this->bvinfo->getBrandInfo();
78 - $bvslug = $this->bvinfo->slug;
79 - if (isset($plugins->response[$bvslug]) && is_array($brand)) {
80 - if (array_key_exists('hide_from_menu', $brand) || array_key_exists('hide', $brand)) {
81 - unset($plugins->response[$bvslug]);
82 - }
83 - }
84 - return $plugins;
85 - }
86 -
87 76 public function hidePluginDetails($plugin_metas, $slug) {
88 77 $brand = $this->bvinfo->getBrandInfo();
89 78 $bvslug = $this->bvinfo->slug;
90 79
@@ -98,37 +87,8 @@
98 87 }
99 88 return $plugin_metas;
100 89 }
101 90
102 - public function handlePluginHealthInfo($plugins) {
103 - $brand = $this->bvinfo->getBrandInfo();
104 - $title = $this->bvinfo->title;
105 - if (!isset($plugins["wp-plugins-active"]) ||
106 - !isset($plugins["wp-plugins-active"]["fields"]) ||
107 - !isset($plugins["wp-plugins-active"]["fields"][$title])) {
108 - return $plugins;
109 - }
110 - if (is_array($brand)) {
111 - if (array_key_exists('hide', $brand)) {
112 - unset($plugins["wp-plugins-active"]["fields"][$title]);
113 - } else {
114 - $plugin = $plugins["wp-plugins-active"]["fields"][$title];
115 - $author = $this->bvinfo->author;
116 - if (array_key_exists('name', $brand)) {
117 - $plugin["label"] = $brand['name'];
118 - }
119 - if (array_key_exists('author', $brand)) {
120 - $plugin["value"] = str_replace($author, $brand['author'], $plugin["value"]);
121 - }
122 - if (array_key_exists('description', $brand)) {
123 - $plugin["debug"] = str_replace($author, $brand['author'], $plugin["debug"]);
124 - }
125 - $plugins["wp-plugins-active"]["fields"][$title] = $plugin;
126 - }
127 - }
128 - return $plugins;
129 - }
130 -
131 91 public function settingsLink($links, $file) {
132 92 #XNOTE: Fix this
133 93 if ( $file == plugin_basename( dirname(__FILE__).'/blogvault.php' ) ) {
134 94 $brand = $this->bvinfo->getBrandInfo();
@@ -140,9 +100,9 @@
140 100 }
141 101
142 102 public function getPluginLogo() {
143 103 $brand = $this->bvinfo->getBrandInfo();
144 - if (is_array($brand) && array_key_exists('logo', $brand)) {
104 + if ($brand && array_key_exists('logo', $brand)) {
145 105 return $brand['logo'];
146 106 }
147 107 return $this->bvinfo->logo;
148 108 }
@@ -148,9 +108,9 @@
148 108 }
149 109
150 110 public function getWebPage() {
151 111 $brand = $this->bvinfo->getBrandInfo();
152 - if (is_array($brand) && array_key_exists('webpage', $brand)) {
112 + if ($brand && array_key_exists('webpage', $brand)) {
153 113 return $brand['webpage'];
154 114 }
155 115 return $this->bvinfo->webpage;
156 116 }