login redirect_to paramter ignored in 6.4.10
-
We recently upgraded from version 6.3.12 -> 6.4.10 and noticed that when users logged in there where always redirected to their configured login url in the Redirection configuration (“Check this option to send the user to a custom location, specified by the textbox above.”).
In 6.3.12 the value of the ‘redirect_to’ parameter passed to the login page would over ride this. From looking at the code in 6.3.12 this seems to be in custom-redirection.php on line 141:
// If a redirect is requested, it takes precedence if ( ! empty( $request ) && admin_url() != $request && admin_url( 'profile.php' ) != $request ) $redirect_to = $request;
In 6.4.10 this code has been moved into
get_redirect_for_user
which doesn’t look at the value of the redirect_to parameter. It comes intologin_redirect
but is never passed toget_redirect_for_user
.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘login redirect_to paramter ignored in 6.4.10’ is closed to new replies.