#53992 closed enhancement (fixed)
Lets add WP_User object to "registration_redirect" filter
Reported by: | Collizo4sky | Owned by: | davidbaumwald |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
I am the maintainer of Peters login redirect plugin. One of the most request feature is to redirect users after registration based on certain user characteristics.
Please, I want
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect );
To change to
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors );
Attachments (2)
Change History (18)
#3
@
3 years ago
@mukesh27 totally agreed. Currently away from my computer.
If you can submit a patch, that would be great.
#5
@
3 years ago
- Keywords has-patch needs-testing added; needs-patch removed
- Resolution set to invalid
- Status changed from new to closed
Hi,
Patch has been added but it need testing.
#7
follow-up:
↓ 8
@
3 years ago
@aadilali thanks for the patch.
I think we have to add a @since note for the new filter parameter
#8
in reply to:
↑ 7
@
3 years ago
Replying to mukesh27:
@aadilali thanks for the patch.
I think we have to add a @since note new filter parameter
Should I add @since note and update the patch?
This ticket was mentioned in Slack in #core-test by hellofromtonya. View the logs.
3 years ago
#10
@
3 years ago
- Keywords needs-testing removed
This patch is not changing redirection functionality. Rather, it's passing the errors to hooked callbacks. In today's test scrub, it was determined that manual testing is not needed. Why? apply_filters()
is well tested and the passing of another variable/data item is known to work.
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
3 years ago
This ticket was mentioned in PR #1851 on WordPress/wordpress-develop by audrasjb.
3 years ago
#12
Trac ticket: https://core.trac.wordpress.org/ticket/53992
#13
@
3 years ago
- Keywords commit added
Patch refreshed in the PR above. Tests are passing well.
Marking for commit
.
dream-encode commented on PR #1851:
3 years ago
#16
Committed to core via changeset https://core.trac.wordpress.org/changeset/52091
Hi there!
If we add new argument then we also need to add document for it. Also i think we have to change that
$errors
variable with proper name so other don't get confuse.