From bdeef4ec9f61d00424288da23259f50937f09e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=CC=81s=CC=8C=20Dvor=CC=8Ca=CC=81k?= Date: Tue, 12 Jan 2016 21:10:05 +0100 Subject: [PATCH] In Bash, environment variable is always a string. Because of the way this constant is checked in WP ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ), DISABLE_WP_CRON=false would resolve to true. --- config/application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.php b/config/application.php index 5bf704ce08..3b2ab77135 100644 --- a/config/application.php +++ b/config/application.php @@ -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); /**