#21519 closed defect (bug) (duplicate)
Bug in wp-login.php page
| Reported by: | ramnew2006 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 3.4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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();
}
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#14949, #20639
A blank page might be related to ticket:14787:7.