| @@ -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; | |