only use domain cookies in a subdomain install, see #12142
git-svn-id: https://develop.svn.wordpress.org/trunk@14380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fc796b8105
commit
2c1b847219
@ -63,8 +63,8 @@ function ms_cookie_constants( ) {
|
||||
/**
|
||||
* @since 2.0.0
|
||||
*/
|
||||
if ( !defined('COOKIE_DOMAIN') && 'localhost' != $current_site->domain ) {
|
||||
if ( isset( $current_site->cookie_domain ) )
|
||||
if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) {
|
||||
if ( !empty( $current_site->cookie_domain ) )
|
||||
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
|
||||
else
|
||||
define('COOKIE_DOMAIN', '.' . $current_site->domain);
|
||||
|
Loading…
x
Reference in New Issue
Block a user