Skip to content

Commit

Permalink
Post migration experience: Hide ssl task on wpcomstaging.com (#39953)
Browse files Browse the repository at this point in the history
* Post-migration: hide ssl task on wpcomstaging.com

* changelog

---------

Co-authored-by: Andrés Blanco <[email protected]>
  • Loading branch information
andres-blanco and Andrés Blanco authored Oct 29, 2024
1 parent 890e73b commit d6ae3e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Small detail on WPCOM list


Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ function wpcom_launchpad_get_task_definitions() {
return __( 'Provision SSL certificate', 'jetpack-mu-wpcom' );
},
'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed',
'is_disabled_callback' => 'wpcom_launchpad_is_primary_domain_wpcom',
'is_visible_callback' => 'wpcom_launchpad_is_ssl_task_visible',
'get_calypso_path' => function ( $task, $default, $data ) {
$domain = $data['site_slug_encoded'];
return '/domains/manage/' . $domain . '/edit/' . $domain;
Expand Down Expand Up @@ -2815,6 +2815,15 @@ function wpcom_launchpad_get_latest_draft_id() {
return $cached_draft_id;
}

/**
* Will return true if the primary domain is not a WPCOM domain.
*
* @return bool
*/
function wpcom_launchpad_is_ssl_task_visible() {
return ! wpcom_launchpad_is_primary_domain_wpcom();
}

/**
* Checks if the current site primary domain is a WPCOM domain.
*
Expand Down

0 comments on commit d6ae3e2

Please sign in to comment.