forked from pantheon-systems/example-wordpress-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Include the whoops plugin by default. This requires modifying the wp-config.php
to include the necessary environment variables.
WP_DEBUG=true
WP_DEBUG_DISPLAY=true
The WP_DEBUG_DISPLAY
constant will need defined here:
example-wordpress-composer/web/wp-config.php
Lines 73 to 77 in 1f26f91
/** | |
* Set debug modes | |
*/ | |
define( 'WP_DEBUG', getenv( 'WP_DEBUG' ) === 'true' ? true : false ); | |
define( 'IS_LOCAL', getenv( 'IS_LOCAL' ) !== false ? true : false ); |
The Lando Pantheon recipe does create a PANTHEON_ENVIRONMENT
variables. Which is why the wp-config.php
needs updated. Locally the config creates the constants based on it being a Pantheon Environment which equals lando
.
example-wordpress-composer/web/wp-config.php
Line 102 in 1f26f91
if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) ): |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request