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
This commit is contained in:
Tommaso Piccioli 2023-01-20 13:41:44 +01:00
parent 59674f255e
commit dc68ce406d
1 changed files with 3 additions and 0 deletions

View File

@ -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");