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 committed Feb 3, 2023
1 parent 1e90ec6 commit fd654aa
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 @@ -59,8 +59,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 fd654aa

Please sign in to comment.