[wp-trac] [WordPress Trac] #53823: The redirect_to query arg is lost on a failed log in attempt
WordPress Trac
noreply at wordpress.org
Thu Jul 29 09:23:24 UTC 2021
#53823: The redirect_to query arg is lost on a failed log in attempt
------------------------------------+------------------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
Comment:
Thanks for the report Henry! This works as expected for me. When a user's
login fails, the browser remains on the POSTed form and the value of the
`redirect_to` (and other) parameters are placed into hidden inputs on the
login form. If the user subsequently logs in successfully, they are
redirected to the `redirect_to` location. [https://github.com/WordPress
/wordpress-develop/blob/bedd023c3ae3e2d1d1594eca3184d4b719af02fa/src/wp-
login.php#L1352 Relevant code is here].
Can you try again and confirm you don't have any plugins interfering etc?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53823#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list