[wp-trac] [WordPress Trac] #29889: Login redirect to login page even if authenticated
WordPress Trac
noreply at wordpress.org
Wed Oct 8 14:15:53 UTC 2014
#29889: Login redirect to login page even if authenticated
------------------------------------+------------------------------
Reporter: sgissinger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 3.9.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
Comment:
Thanks for the report sgissinger. I'm unable to reproduce the problem
you're experiencing. Note that the `login_redirect` filter is applied each
time you view the login screen (even if you don't attempt to log in) in
order to control where the redirect goes after the user does log in.
By default, the `$user` parameter in this situation is an empty `WP_Error`
object. However, when you successfully log in the `$user` parameter will
be a `WP_User` object.
Can you confirm that the bug still exists with the default theme activated
and all other plugins deactivated? Also note that your callback function
hooked into `login_redirect` shouldn't actually perform the redirect, it
should just return the redirect location (but I think you're doing that
anyway).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29889#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list