pantheon-systems / wordpress-composer-managed

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://docs.pantheon.io/guides/wordpress-composer
MIT License
3 stars 4 forks source link

[CMSP-1140] Move cookie settings down to use Pantheon hostname #141

Closed jazzsequence closed 2 months ago

jazzsequence commented 2 months ago

This pull request resolves a minor bug discovered while testing #140 in which HTTP_HOST was not defined when it was being called for the cookie settings.

Since this is the problem that PANTHEON_HOSTNAME solves, the PR moves the cookie settings down in the application.pantheon.php code so that we can use the PANTHEON_HOSTNAME value. This ensures that the cookie domain, admin cookie path, cookie path, and site cookie path are correctly defined for the Pantheon environment.