[wp-trac] [WordPress Trac] #60748: auth_redirect() login check doesn't exist or doesn't work
WordPress Trac
noreply at wordpress.org
Fri Apr 19 15:47:17 UTC 2024
#60748: auth_redirect() login check doesn't exist or doesn't work
------------------------------------+------------------------------
Reporter: kratosgemini | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------------+------------------------------
Comment (by rajinsharwar):
Hi @kratosgemini, thanks for opening the ticket! Well, it's a default
behavior for WordPress I believe to show a logged-in page when the user is
still logged in. So, even if you are logged in to the Admin Dashboard if
you try to go under /wp-login.php, it will show the login form. So, I
believe, the auth_redirect() should always be encapsulated by the
is_user_logged_in() function to avoid this behavior.
What we can do is, update this behavior in the code doc for future
reference.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60748#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list