[wp-trac] [WordPress Trac] #21519: Bug in wp-login.php page
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 8 12:23:07 UTC 2012
#21519: Bug in wp-login.php page
--------------------------+-----------------------------
Reporter: ramnew2006 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4.1
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
When a user tries to access the example.com/wp-login.php when he is
already logged in, the present wp-login.php file redirects to the same
login page asking for sign in details or leaves a blank page. A
conditional statement which checks if the user is logged in or not should
be present in the wp-login.php file like the following code.
{{{
/** If a user is logged in he should be redirected to the home page
automatically. */
if ( is_user_logged_in() ) {
wp_redirect( home_url() );
exit();
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21519>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list