From 65b2b51b637dfce9f0bc52b44e83b3db323b624c Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 25 Sep 2007 23:28:02 +0000 Subject: [PATCH] Set TEST_COOKIE for SITECOOKIEPATH. see #5076 git-svn-id: http://svn.automattic.com/wordpress/trunk@6168 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-login.php b/wp-login.php index 866b90237a..d77428f65f 100644 --- a/wp-login.php +++ b/wp-login.php @@ -22,6 +22,8 @@ if ( defined('RELOCATE') ) { // Move flag is set //Set a cookie now to see if they are supported by the browser. setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); +if ( SITECOOKIEPATH != COOKIEPATH ) + setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); // Rather than duplicating this HTML all over the place, we'll stick it in function function login_header($title = 'Login', $message = '') {