Changeset 38814 for trunk/src/wp-includes/ms-default-constants.php
- Timestamp:
- 10/19/2016 04:46:14 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-default-constants.php
r37985 r38814 48 48 */ 49 49 function ms_cookie_constants( ) { 50 $current_ site = get_current_site();50 $current_network = get_network(); 51 51 52 52 /** … … 54 54 */ 55 55 if ( !defined( 'COOKIEPATH' ) ) 56 define( 'COOKIEPATH', $current_ site->path );56 define( 'COOKIEPATH', $current_network->path ); 57 57 58 58 /** … … 60 60 */ 61 61 if ( !defined( 'SITECOOKIEPATH' ) ) 62 define( 'SITECOOKIEPATH', $current_ site->path );62 define( 'SITECOOKIEPATH', $current_network->path ); 63 63 64 64 /** … … 77 77 */ 78 78 if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) { 79 if ( !empty( $current_ site->cookie_domain ) )80 define('COOKIE_DOMAIN', '.' . $current_ site->cookie_domain);79 if ( !empty( $current_network->cookie_domain ) ) 80 define('COOKIE_DOMAIN', '.' . $current_network->cookie_domain); 81 81 else 82 define('COOKIE_DOMAIN', '.' . $current_ site->domain);82 define('COOKIE_DOMAIN', '.' . $current_network->domain); 83 83 } 84 84 }
Note: See TracChangeset
for help on using the changeset viewer.