From eef165d43c964530972d4e2261ced5c836557943 Mon Sep 17 00:00:00 2001 From: Dom Sekotill Date: Thu, 19 Mar 2020 00:03:09 +0000 Subject: [PATCH] Disable DISALLOW_FILE_MODS when loaded in wp-cli This will allow cron jobs run through the cli to perform upgrades. --- data/wp-config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/wp-config.php b/data/wp-config.php index 78063c2..02f2e68 100644 --- a/data/wp-config.php +++ b/data/wp-config.php @@ -9,7 +9,8 @@ * interface; modify the configuration in /etc/wordpress/ according to the * documentation for PLUGINS[_LIST], THEMES[_LIST] and LANGUAGES[_LIST] **/ -define('DISALLOW_FILE_MODS', true); +if ( !defined( 'WP_CLI' ) ) + define('DISALLOW_FILE_MODS', true); /** * Disable running wp-cron.php on every page load. A sidecar process -- GitLab