fix warning on cookie_domain, see #12457
git-svn-id: https://develop.svn.wordpress.org/trunk@13707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5c18ec70f6
commit
2f1c39ad75
|
@ -62,7 +62,7 @@ function ms_cookie_constants( ) {
|
||||||
/**
|
/**
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
if ( !defined('COOKIE_DOMAIN') && 'localhost' != $current_site->cookie_domain ) {
|
if ( !defined('COOKIE_DOMAIN') && 'localhost' != $current_site->domain ) {
|
||||||
if ( isset( $current_site->cookie_domain ) )
|
if ( isset( $current_site->cookie_domain ) )
|
||||||
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
|
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue