Opened 10 years ago
Last modified 5 years ago
#27632 reviewing defect (bug)
`wp_registration_url()` doesn't have a redirect argument
Reported by: | Denis-de-Bernardy | Owned by: | chriscct7 |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6 |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
There is a redirect argument for each of the login, logout, lostpassword url functions, but for the registration url function.
Omission or done on purpose?
Attachments (1)
Change History (7)
#5
@
9 years ago
- Keywords has-patch added; needs-patch removed
The registration_redirect
filter in wp-login.php
seems to be the exception to the rule in the login/forgot/register forms. There's a valid use case for having the filter in the wp_registration_url()
function if it's used on the front end. You could set up logic to return a user to their previous location on the site without relying on the referrer. There's also code that respects the redirect_to
get or post param if set so this makes sense IMO.
Note: See
TracTickets for help on using
tickets.
On a related note, I'm noting a different logic in multisite and non-multisite in the
wp-signup.php
file, and a direct call tosite_url('wp-login.php?action=register')
within it, so I presume this rabbit hole is deeper than it looks on the surface.