Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oaratovskyi committed Dec 13, 2024
1 parent be70231 commit 3dff80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-payments-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ public function maybe_handle_onboarding() {
$auto_start_test_drive_onboarding = $create_test_drive_account &&
! empty( $_GET['auto_start_test_drive_onboarding'] ) &&
'true' === $_GET['auto_start_test_drive_onboarding'];
$capabilities = wc_clean( wp_unslash( $_GET['capabilities'] ) );
$capabilities = ! empty( $_GET['capabilities'] ) ? wc_clean( wp_unslash( $_GET['capabilities'] ) ) : [];
// We will onboard in test mode if the test_mode GET param is set, if we are creating a test drive account,
// or if we are in dev mode.
$should_onboard_in_test_mode = ( isset( $_GET['test_mode'] ) && wc_clean( wp_unslash( $_GET['test_mode'] ) ) ) ||
Expand Down

0 comments on commit 3dff80b

Please sign in to comment.