Skip to content

Commit

Permalink
Conditionally set WP_HOME and WP_SITEURL
Browse files Browse the repository at this point in the history
  • Loading branch information
marfillaster authored and pwtyler committed Aug 30, 2023
1 parent 7178558 commit 8bf6f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wp-config-pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
$scheme = 'https';
$_SERVER['HTTPS'] = 'on';
}
define('WP_HOME', $scheme . '://' . $_SERVER['HTTP_HOST']);
define('WP_SITEURL', $scheme . '://' . $_SERVER['HTTP_HOST']);

defined( 'WP_HOME' ) or define( 'WP_HOME', $scheme . '://' . $_SERVER['HTTP_HOST'] );
defined( 'WP_SITEURL' ) or define( 'WP_SITEURL', $scheme . '://' . $_SERVER['HTTP_HOST'] );
}
// Don't show deprecations; useful under PHP 5.5
error_reporting(E_ALL ^ E_DEPRECATED);
Expand Down

0 comments on commit 8bf6f44

Please sign in to comment.