#21519 closed defect (bug) (duplicate)
Bug in wp-login.php page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 3.4.1 |
| Severity: | normal | Keywords: | |
| Cc: |
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)
comment:1
SergeyBiryukov
— 10 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
comment:2
SergeyBiryukov
— 10 months ago
- Component changed from General to Administration
- Keywords has-patch removed
Note: See
TracTickets for help on using
tickets.
#14949, #20639
A blank page might be related to ticket:14787:7.