Skip to content

Commit

Permalink
In Bash, environment variable is always a string. Because of the way …
Browse files Browse the repository at this point in the history
…this constant is checked in WP ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ), DISABLE_WP_CRON=false would resolve to true.
  • Loading branch information
dvorakluk committed Jan 17, 2016
1 parent 87ab3fd commit bdeef4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* Custom Settings
*/
define('AUTOMATIC_UPDATER_DISABLED', true);
define('DISABLE_WP_CRON', getenv('DISABLE_WP_CRON') ?: false);
define('DISABLE_WP_CRON', getenv('DISABLE_WP_CRON') == 'true');
define('DISALLOW_FILE_EDIT', true);

/**
Expand Down

0 comments on commit bdeef4e

Please sign in to comment.