mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
use current site domain for cookie domain when cookie domain not set, See #12142
git-svn-id: http://svn.automattic.com/wordpress/trunk@13127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
98e8daa20a
commit
99c15de631
@ -61,8 +61,12 @@ function ms_cookie_constants( ) {
|
||||
/**
|
||||
* @since 2.0.0
|
||||
*/
|
||||
if ( !defined('COOKIE_DOMAIN') )
|
||||
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
|
||||
if ( !defined('COOKIE_DOMAIN') ) {
|
||||
if ( isset( $current_site->cookie_domain ) )
|
||||
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
|
||||
else
|
||||
define('COOKIE_DOMAIN', '.' . $current_site->domain);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -85,4 +89,4 @@ function ms_file_constants( ) {
|
||||
if ( !defined( 'WPMU_ACCEL_REDIRECT' ) )
|
||||
define( 'WPMU_ACCEL_REDIRECT', false );
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user