diff --git a/config/application.php b/config/application.php index 702f6e53da..37718b29ca 100644 --- a/config/application.php +++ b/config/application.php @@ -116,7 +116,9 @@ Config::define('DISABLE_WP_CRON', env('DISABLE_WP_CRON') ?: false); // Disable the plugin and theme file editor in the admin -Config::define('DISALLOW_FILE_EDIT', true); +if (!defined('DISALLOW_FILE_EDIT')) { + Config::define('DISALLOW_FILE_EDIT', true); +} // Disable plugin and theme updates and installation from the admin Config::define('DISALLOW_FILE_MODS', true);