Skip to content

Commit

Permalink
[CMSP-1140] Move cookie settings down to use Pantheon hostname (#141)
Browse files Browse the repository at this point in the history
move cookie settings down so we can use pantheon hostname
  • Loading branch information
jazzsequence authored Jul 17, 2024
1 parent df5f36d commit 857ff51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/application.pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
use Roots\WPConfig\Config;
use function Env\env;

// Cookie settings.
defined( 'COOKIE_DOMAIN' ) or Config::define( 'COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
defined( 'ADMIN_COOKIE_PATH' ) or Config::define( 'ADMIN_COOKIE_PATH', '/' );
defined( 'COOKIEPATH' ) or Config::define( 'COOKIEPATH', '' );
defined( 'SITECOOKIEPATH' ) or Config::define( 'SITECOOKIEPATH', '' );

// Pantheon-specific settings.
if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) ) {
// These settings do not apply when using Lando local.
Expand Down Expand Up @@ -86,3 +80,9 @@
define( 'PANTHEON_HOSTNAME', $hostname );
}
}

// Cookie settings.
defined( 'COOKIE_DOMAIN' ) or Config::define( 'COOKIE_DOMAIN', PANTHEON_HOSTNAME );
defined( 'ADMIN_COOKIE_PATH' ) or Config::define( 'ADMIN_COOKIE_PATH', '/' );
defined( 'COOKIEPATH' ) or Config::define( 'COOKIEPATH', '' );
defined( 'SITECOOKIEPATH' ) or Config::define( 'SITECOOKIEPATH', '' );

0 comments on commit 857ff51

Please sign in to comment.