[wp-trac] [WordPress Trac] #12282: Redirect option after registration and password recovery
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 27 16:03:30 UTC 2010
#12282: Redirect option after registration and password recovery
-------------------------+--------------------------------------------------
Reporter: usermrpapa | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Users | Version: 2.9.2
Severity: normal | Keywords: has-patch, tested
-------------------------+--------------------------------------------------
Comment(by usermrpapa):
No, that doesnt work - at least not like it does for login redirection.
Thats because when the form (register or lost password) is loaded, the
hidden input redirect_to will always be empty, unless the redirect filter
is used. Any $_REQUEST['redirect_to'] (ie query arg on the url) is
ignored. The login redirect checks for the $_REQUEST before the filters
and sets $redirect_to to the $_REQUEST if its there. That way a
redirection can be accomplished without using a filter. Thats what some
of the stuff you removed from my patch (yours looks cleaner, btw) did.
Now, since there is a filter applied, this can be made to work, just
pointing out that it functions a bit differently than the standard login
redirection. On login, you can redirect simply with the url. With this
patch, you cannot for registration or lost password.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12282#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list