WordPress.org

Make WordPress Core

Changeset 14380


Ignore:
Timestamp:
05/03/10 18:53:05 (4 years ago)
Author:
wpmuguru
Message:

only use domain cookies in a subdomain install, see #12142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-default-constants.php

    r13998 r14380  
    6464     * @since 2.0.0 
    6565     */ 
    66     if ( !defined('COOKIE_DOMAIN') && 'localhost' != $current_site->domain ) { 
    67         if ( isset( $current_site->cookie_domain ) ) 
     66    if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) { 
     67        if ( !empty( $current_site->cookie_domain ) ) 
    6868            define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain); 
    6969        else 
Note: See TracChangeset for help on using the changeset viewer.