Skip to content

Commit

Permalink
Avoid redeclaration of constant ABSPATH in generated WordPress conf…
Browse files Browse the repository at this point in the history
…ig (ddev#3298), fixes ddev#3297
  • Loading branch information
gilbertsoft committed Oct 16, 2021
1 parent 18ed64a commit fb8045b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ddevapp/wordpress.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ define('LOGGED_IN_SALT', '{{ $config.LoggedInSalt }}');
define('NONCE_SALT', '{{ $config.NonceSalt }}');
/** Absolute path to the WordPress directory. */
define('ABSPATH', dirname(__FILE__) . '/{{ $config.AbsPath }}');
if (!defined('ABSPATH')) {
define('ABSPATH', dirname(__FILE__) . '/{{ $config.AbsPath }}');
}
// Include for settings managed by ddev.
$ddev_settings = dirname(__FILE__) . '/wp-config-ddev.php';
Expand Down

0 comments on commit fb8045b

Please sign in to comment.