We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e8de0 commit 29d8ac8Copy full SHA for 29d8ac8
wp-config.php
@@ -7,6 +7,11 @@
7
foreach ($_ENV as $key => $value) {
8
$capitalized = strtoupper($key);
9
if (!defined($capitalized)) {
10
+ // Convert string boolean values to actual booleans
11
+ if (in_array($value, ['true', 'false'])) {
12
+ $value = filter_var($value, FILTER_VALIDATE_BOOLEAN);
13
+ }
14
+
15
define($capitalized, $value);
16
}
17
0 commit comments