From f6054ed31ac3f8c5d24871ab17d790ff5154b805 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Mon, 28 Oct 2024 10:26:39 -0400 Subject: [PATCH] Clean up is_jarvis checks now that Bluehost and HostGator are fully migrated --- includes/Brands.php | 16 ++++------------ includes/Config.php | 9 --------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/includes/Brands.php b/includes/Brands.php index 31f4995..ed47064 100644 --- a/includes/Brands.php +++ b/includes/Brands.php @@ -99,9 +99,7 @@ public static function get_brands() { ), ), 'migrationInfo' => array( - 'defaultLink' => Config::is_jarvis() ? - 'https://www.bluehost.com/my-account/hosting/details/sites/add/transfer' - : 'https://my.bluehost.com/cgi/services/migration', + 'defaultLink' => 'https://www.bluehost.com/my-account/hosting/details/sites/add/transfer', ), 'config' => array( 'enabled_flows' => array( @@ -401,15 +399,9 @@ public static function get_brands() { 'twitterUrl' => 'https://twitter.com/hostgator', 'youtubeUrl' => 'https://www.youtube.com/user/hostgator', 'linkedinUrl' => 'https://www.linkedin.com/company/hostgator-com/', - 'accountUrl' => Config::is_jarvis() ? - 'https://www.hostgator.com/my-account/login' - : 'https://portal.hostgator.com/', - 'domainsUrl' => Config::is_jarvis() ? - 'https://www.hostgator.com/my-account/domain-center/domain-list' - : 'https://portal.hostgator.com/domain/manage', - 'emailUrl' => Config::is_jarvis() ? - 'https://www.hostgator.com/my-account/hosting/details/email' - : 'https://portal.hostgator.com/email', + 'accountUrl' => 'https://www.hostgator.com/my-account/login', + 'domainsUrl' => 'https://www.hostgator.com/my-account/domain-center/domain-list', + 'emailUrl' => 'https://www.hostgator.com/my-account/hosting/details/email', 'pluginDashboardPage' => \admin_url( 'admin.php?page=hostgator' ), 'phoneNumbers' => array( 'support' => '866-964-2867', diff --git a/includes/Config.php b/includes/Config.php index 4b988f3..15570c5 100644 --- a/includes/Config.php +++ b/includes/Config.php @@ -40,15 +40,6 @@ public static function get_site_capability( $capability ) { return $site_capabilities->get( $capability ); } - /** - * Checks if the site is on Jarvis hosting. - * - * @return boolean - */ - public static function is_jarvis() { - return self::get_site_capability( 'isJarvis' ); - } - /** * Gets the current customer capability if he has access to AI Sitegen. *