redirect_to within wp-login.php breaks with an authentication failure
|Reported by:||oaoao||Owned by:||anonymous|
When submitting from an external form to wp-login.php:
<form action="/wp-login.php?redirect_to=%2F" method="post">
everything operates normally if the user is authenticated on the first try. He is properly redirected to the redirect_to URL, which is "/" in this case.
However, if the login attempt failed on the first try, and a user is passed to the Wordpress login page, redirect_to seems to be lost in the new form, and the user will be redirected to his profile page.