This PR adds a PANTHEON_HOSTNAME constant which defaults to $_SERVER['HTTP_HOST'] if it exists.
When used to define DOMAIN_CURRENT_SITE on WordPress multisites (e.g. define( 'DOMAIN_CURRENT_SITE', PANTHEON_HOSTNAME )), this solves the "undefined index HTTP_HOST" error that shows up in PHP error logs.
Somehow my squash included unrelated stuff (possibly because of the merge commit). I'm going to create a new branch with a single commit and close this.
This PR adds a
PANTHEON_HOSTNAME
constant which defaults to$_SERVER['HTTP_HOST']
if it exists.When used to define
DOMAIN_CURRENT_SITE
on WordPress multisites (e.g.define( 'DOMAIN_CURRENT_SITE', PANTHEON_HOSTNAME )
), this solves the "undefined index HTTP_HOST" error that shows up in PHP error logs.