PluginProbe
The WP Remote WordPress Plugin / 6.36
The WP Remote WordPress Plugin v6.36
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 -5 6.476.36 View file →
@@ -63,17 +63,14 @@
63 63 public function wprsecAdminMenu($hook) {
64 64 if ($hook === 'toplevel_page_wpremote' || WPRHelper::safePregMatch("/wpr_add_account$/", $hook) || WPRHelper::safePregMatch("/wpr_account_details$/", $hook)) {
65 65 wp_enqueue_style( 'bootstrap', plugins_url('css/bootstrap.min.css', __FILE__), array(), $this->bvinfo->version);
66 66 wp_enqueue_style( 'bvplugin', plugins_url('css/bvplugin.min.css', __FILE__), array(), $this->bvinfo->version);
67 - wp_enqueue_script( 'wpr-connection-key', plugins_url('js/connection-key.js', __FILE__), array(), $this->bvinfo->version, true);
68 67 }
69 68 }
70 69
71 70 public function menu() {
72 71 $brand = $this->bvinfo->getPluginWhitelabelInfo();
73 - $can_whitelabel = $this->bvinfo->canWhiteLabel();
74 - $hide_from_menu = array_key_exists('hide', $brand) || array_key_exists('hide_from_menu', $brand);
75 - if (!$can_whitelabel || !$hide_from_menu) {
72 + if (!array_key_exists('hide', $brand) && !array_key_exists('hide_from_menu', $brand)) {
76 73 $bname = $this->bvinfo->getBrandName();
77 74 $icon = $this->bvinfo->getBrandIcon();
78 75 add_menu_page($bname, $bname, 'manage_options', $this->bvinfo->plugname,
79 76 array($this, 'adminPage'), plugins_url($icon, __FILE__ ));
@@ -274,5 +271,5 @@
274 271 }
275 272 return $plugins;
276 273 }
277 274 }
278 -endif;
275 +endif;