Skip to content

Commit

Permalink
Clean up is_jarvis checks now that Bluehost and HostGator are fully m…
Browse files Browse the repository at this point in the history
…igrated
  • Loading branch information
wpscholar committed Oct 28, 2024
1 parent 09a23d2 commit f6054ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
16 changes: 4 additions & 12 deletions includes/Brands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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',
Expand Down
9 changes: 0 additions & 9 deletions includes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit f6054ed

Please sign in to comment.