From 204d8ee7177b630e7e429a1bbd74e9994b2262b1 Mon Sep 17 00:00:00 2001 From: Joshua Fredrickson Date: Fri, 21 Jun 2024 09:42:19 -0500 Subject: [PATCH] Avoid redefining `DISALLOW_FILE_EDIT` --- config/application.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);