Allow localhost in a multisite subdirectory install. More network.php improvements. see #12457 for localhost. see #11816

git-svn-id: https://develop.svn.wordpress.org/trunk@13622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-03-09 06:14:42 +00:00
parent 88268d637d
commit 91b380571d
4 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ function ms_cookie_constants( ) {
/**
* @since 2.0.0
*/
if ( !defined('COOKIE_DOMAIN') ) {
if ( !defined('COOKIE_DOMAIN') && 'localhost' != $current_site->cookie_domain ) {
if ( isset( $current_site->cookie_domain ) )
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
else