From dc68ce406d3d72728161a1559e3d3795d8c1880c Mon Sep 17 00:00:00 2001 From: Tommaso Piccioli Date: Fri, 20 Jan 2023 13:41:44 +0100 Subject: [PATCH] Update 'templates/wp-config.php.j2' define WP_CONTENT_DIR here because there is no check in wp-includes/load.php, before default constants are defined --- templates/wp-config.php.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/wp-config.php.j2 b/templates/wp-config.php.j2 index bf21fe4..35c26c9 100644 --- a/templates/wp-config.php.j2 +++ b/templates/wp-config.php.j2 @@ -18,4 +18,7 @@ define("WP_ENV", "{{ wordpress_env }}"); if (!defined("ABSPATH")) define("ABSPATH", dirname(__FILE__) . "/"); +if (!defined("WP_CONTENT_DIR")) + define("WP_CONTENT_DIR", ABSPATH . "wp-content"); + require_once(ABSPATH . "wp-settings.php"); -- 2.17.1