From d5d5688edbd1bf4c9f8d55798772268adaf5f20c Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 30 Apr 2024 11:24:29 -0600 Subject: [PATCH] update DOMAIN_CURRENT_SITE to only use PANTHEON_HOSTNAME if it's defined --- inc/network/includes-network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/network/includes-network.php b/inc/network/includes-network.php index 3eae18c..d471899 100644 --- a/inc/network/includes-network.php +++ b/inc/network/includes-network.php @@ -460,8 +460,8 @@ function network_step2( $errors = false ) { define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', ); -define( 'DOMAIN_CURRENT_SITE', PANTHEON_HOSTNAME ); -define( 'PATH_CURRENT_SITE', '' ); +// Use PANTHEON_HOSTNAME if in a Pantheon environment, otherwise use HTTP_HOST. +define( 'DOMAIN_CURRENT_SITE', defined( 'PANTHEON_HOSTNAME' ) ? PANTHEON_HOSTNAME : $_SERVER['HTTP_HOST'] ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );