From adb410b4b4bd9c8298f726b2d79889a70388177a Mon Sep 17 00:00:00 2001 From: valterlorran Date: Thu, 17 Oct 2024 01:12:08 -0300 Subject: [PATCH] Post-migration Experience: Make the "Migrating the site" task complete by default (#39769) * Make the Migrating the site task complete as default * changelog --------- Co-authored-by: Valter Lorran --- .../changelog/fix-migration-site-completed-by-default | 4 ++++ .../src/features/launchpad/launchpad-task-definitions.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 projects/packages/jetpack-mu-wpcom/changelog/fix-migration-site-completed-by-default diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-site-completed-by-default b/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-site-completed-by-default new file mode 100644 index 0000000000000..06b4f49b9037a --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-site-completed-by-default @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Make the Migrating the site task complete by default diff --git a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php index 352d3d2932d7d..2d870ff8b8766 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php @@ -806,7 +806,7 @@ function wpcom_launchpad_get_task_definitions() { 'get_title' => function () { return __( 'Migrating the site', 'jetpack-mu-wpcom' ); }, - 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_complete_callback' => '__return_true', 'is_visible_callback' => '__return_true', ), // Post-migration tasks.