Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGS-7678] define PANTHEON_HOSTNAME constant #381

Closed
wants to merge 1 commit into from

Conversation

jazzsequence
Copy link
Contributor

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.

@pwtyler pwtyler changed the title [BUGS-7678] define PANTHEON_HOSTNAME cosntant [BUGS-7678] define PANTHEON_HOSTNAME constant Apr 29, 2024
@pwtyler pwtyler changed the base branch from master to default April 29, 2024 20:19
@jazzsequence jazzsequence force-pushed the cmsp-7678-add-pantheon_hostname branch from f90bf2b to 8cff967 Compare April 30, 2024 18:03
@jazzsequence
Copy link
Contributor Author

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.

@jazzsequence
Copy link
Contributor Author

closed in favor of #382

@jazzsequence jazzsequence deleted the cmsp-7678-add-pantheon_hostname branch April 30, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants