Set TEST_COOKIE for SITECOOKIEPATH. see #5076

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-25 23:17:30 +00:00
parent 2b50d1f647
commit d93fbd7e13
1 changed files with 2 additions and 0 deletions

View File

@ -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 = '') {