Skip to content

Commit

Permalink
remove is_visible_callback, since it defaults to true and add default…
Browse files Browse the repository at this point in the history
… check for task completion
  • Loading branch information
Andrés Blanco committed Oct 16, 2024
1 parent 3978554 commit a5aa067
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,7 @@ function wpcom_launchpad_get_task_definitions() {
'get_title' => function () {
return __( 'Provision SSL certificate', 'jetpack-mu-wpcom' );
},
'is_complete_callback' => '__return_false',
'is_visible_callback' => '__return_true',
'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed',
'is_disabled_callback' => 'wpcom_launchpad_is_primary_domain_wpcom',
'get_calypso_path' => function ( $task, $default, $data ) {
$domain = $data['site_slug_encoded'];
Expand Down

0 comments on commit a5aa067

Please sign in to comment.