Make WordPress Core


Ignore:
Timestamp:
02/14/2010 12:12:08 AM (17 years ago)
Author:
wpmuguru
Message:

use current site domain for cookie domain when cookie domain not set, See #12142

File:
1 edited

Legend:

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

    r13065 r13127  
    6262         * @since 2.0.0
    6363         */
    64         if ( !defined('COOKIE_DOMAIN') )
    65                 define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
     64        if ( !defined('COOKIE_DOMAIN') ) {
     65                if ( isset( $current_site->cookie_domain ) )
     66                        define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
     67                else
     68                        define('COOKIE_DOMAIN', '.' . $current_site->domain);
     69        }
    6670}
    6771
Note: See TracChangeset for help on using the changeset viewer.