Skip to content

Commit

Permalink
wrap $site_name in brackets
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Tyler <[email protected]>
  • Loading branch information
jazzsequence and pwtyler authored Apr 29, 2024
1 parent f8a0dce commit 629a5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-config-pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
if ( ! defined('PANTHEON_HOSTNAME' ) ) {
$site_name = $_ENV['PANTHEON_SITE_NAME'];
$hostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : $_ENV['PANTHEON_ENVIRONMENT'] . "-$site_name.pantheonsite.io" ;
$hostname = $_ENV['PANTHEON_ENVIRONMENT'] === 'lando' ? "$site_name.lndo.site" : $hostname;
$hostname = $_ENV['PANTHEON_ENVIRONMENT'] === 'lando' ? "{$site_name}.lndo.site" : $hostname;
define( 'PANTHEON_HOSTNAME', $hostname );
}

Expand Down

0 comments on commit 629a5ea

Please sign in to comment.