diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a4c8ef2..bbc67960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This is an alpha version! The changes listed here are not final. ### Added - Added Subscribers page Launchpad tasks +- Take id_map in consideration when checking if a task is completed inside wpcom_launchpad_is_task_option_completed. ### Changed - Ensure that the URL for the Add Subscribers task will trigger the right modal diff --git a/src/features/launchpad/launchpad-task-definitions.php b/src/features/launchpad/launchpad-task-definitions.php index 13f26159..b4fb5bf5 100644 --- a/src/features/launchpad/launchpad-task-definitions.php +++ b/src/features/launchpad/launchpad-task-definitions.php @@ -1071,6 +1071,9 @@ function wpcom_launchpad_is_task_option_completed( $task ) { if ( ! empty( $checklist[ $task['id'] ] ) ) { return true; } + if ( isset( $task['id_map'] ) && ! empty( $checklist[ $task['id_map'] ] ) ) { + return true; + } return false; }