summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-12 13:58:00 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-12 13:58:00 +0000
commit63bb618051ee636207e0d9bea57ca4e837670796 (patch)
tree0358457b8759f245c1998fdfebbdc2a0da310f18 /wp-login.php
parent5d2ab91493b40459f5b30dd448891e1963a24ae1 (diff)
downloadwordpress-mu-63bb618051ee636207e0d9bea57ca4e837670796.tar.gz
wordpress-mu-63bb618051ee636207e0d9bea57ca4e837670796.tar.xz
wordpress-mu-63bb618051ee636207e0d9bea57ca4e837670796.zip
lowercase logins
clear cookies if not logged in! git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@661 7be80a69-a1ef-0310-a953-fb0f7c49ff36
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">