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.
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.