summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-login.php')
-rw-r--r--wp-login.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-login.php b/wp-login.php
index 8ee6e8a..4b27b47 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -210,6 +210,9 @@ default:
} else if ( $user_login || $user_pass ) {
$error = __('<strong>Error</strong>: The password field is empty.');
}
+
+ if ( ! is_user_logged_in() )
+ wp_clearcookie(); // Start with a clean slate
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">