Skip to content

Commit

Permalink
update DOMAIN_CURRENT_SITE to only use PANTHEON_HOSTNAME if it's defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 30, 2024
1 parent dca08b0 commit d5d5688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/network/includes-network.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ function network_step2( $errors = false ) {
<?php ob_start(); ?>
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', <?php echo $subdomain_install ? 'true' : 'false'; ?> );
define( 'DOMAIN_CURRENT_SITE', PANTHEON_HOSTNAME );
define( 'PATH_CURRENT_SITE', '<?php echo $base; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>' );
// 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 );
<?php
Expand Down

0 comments on commit d5d5688

Please sign in to comment.