diff --git a/plugins/woocommerce/changelog/fix-missing-shipping-recommendation-task b/plugins/woocommerce/changelog/fix-missing-shipping-recommendation-task new file mode 100644 index 00000000000..5bf2cc6b28e --- /dev/null +++ b/plugins/woocommerce/changelog/fix-missing-shipping-recommendation-task @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix missing shipping-recommendation task diff --git a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php index 07bdc4c08ec..ec29b5a591e 100644 --- a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php +++ b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php @@ -416,7 +416,8 @@ class TaskList { $tasks_json = array(); // We have no use for hidden lists, it's expensive to compute individual tasks completion. - if ( $this->is_visible() ) { + // Exception: Secret tasklist is always hidden. + if ( $this->is_visible() || 'secret_tasklist' === $this->id ) { foreach ( $this->tasks as $task ) { $json = $task->get_json(); if ( $json['canView'] ) {