Skip to content

Debug fix in Heroku

Compare
Choose a tag to compare
@DesignyourCode DesignyourCode released this 14 Mar 21:00
· 15 commits to master since this release

This release fixes an issue in the wp-config.php file not reading Heroku environment variables correctly.

Heroku's environment variables are strings, so the wp-config.php now supports converting the string to a boolean.

If you are using v1.0.0 you may need to add the following to your wp-config.php file:

if (!file_exists($parameters)) {
    if (getenv('DEBUG') === 'true' || getenv('DEBUG') === true) {
        $debug = true;
    } else {
        $debug = false;
    }

    define( 'WP_DEBUG', $debug );
    define( 'SCRIPT_DEBUG', $debug );
} else {
    define( 'WP_DEBUG', $var['debug'] );
    define( 'SCRIPT_DEBUG', $var['debug'] );
}