WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21519 closed defect (bug) (duplicate)

Bug in wp-login.php page

Reported by: ramnew2006 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.1
Component: Administration Keywords:
Focuses: 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 @SergeyBiryukov3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#14949, #20639

A blank page might be related to ticket:14787:7.

comment:2 @SergeyBiryukov3 years ago

  • Component changed from General to Administration
  • Keywords has-patch removed
Note: See TracTickets for help on using tickets.