Invite links: page selector + auto-redirect for stray tokens #19
Reference in New Issue
Block a user
Delete Branch "fix/invite-registration-page-selector"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #16 (account registration, #18): make invitation links land on the right page.
Changes
wp_dropdown_pages), stored in theus_registration_page_idoption. Invitation links point at the selected page (get_permalink), falling back to the home page when unset (with a warning notice).RegistrationPage::maybeRedirectToRegistrationPage(), hooked ontemplate_redirect): any front-end request carrying aus_invitetoken is redirected to the configured registration page (token preserved) unless already there — so links generated/shared before a page was selected still work. No-op when no page is set.RegistrationControllergained theOPTION_PAGEconstant and aset_pageaction. Doc updated.Verification
composer test(104 tests),composer cs, PHPStan level 6, and the no-debug check all pass.🤖 Generated with Claude Code
Add registration-page selector to the Invites pageto Invite links: page selector + auto-redirect for stray tokens