Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Refactors the Setup Wizard steps to use named identifiers instead of numeric indices - for example, start, configuration and finish. Future PR's will rely on this when optionally adding steps - for example, if third party form plugins are detected, the onboarding Setup Wizard might add an additional step for the user to automatically replace third party forms with Kit forms.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Feb 2, 2026
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team February 2, 2026 08:35
@n7studios n7studios marked this pull request as ready for review February 2, 2026 08:35
Copy link

@ciccio-kit ciccio-kit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅


// Define the step the user is on in the setup process.
$this->step = ( filter_has_var( INPUT_GET, 'step' ) ? absint( filter_input( INPUT_GET, 'step', FILTER_SANITIZE_NUMBER_INT ) ) : 1 );
$this->step = ( filter_has_var( INPUT_GET, 'step' ) ? filter_input( INPUT_GET, 'step', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : 'start' );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick (non-blocking): this would be pretty much impossible to exploit, bust since this value is used directly in a include_once at L381 of this same file, what do you think about adding another check here to fallback to 'start' if step is not one of the predefined string values we expect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely agree. Thanks for spotting this - have updated to check the step is registered.

@n7studios n7studios changed the base branch from importer-registration to main February 4, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants