Skip to content

Default support of whoops  #3

Description

@matbrady

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:

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

if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) ):

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions