Skip to content

Commit

Permalink
Refactor payment-related blocks registration (#33941)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Herve <[email protected]>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6799580088
  • Loading branch information
jeherve authored and matticbot committed Nov 8, 2023
1 parent eea98c5 commit 1c3d54a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/features/launchpad/launchpad-task-definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1c3d54a

Please sign in to comment.