Skip to content

Commit b6c4291

Browse files
committed
add experimental WP Multisite constants
1 parent d972ac9 commit b6c4291

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/wp-config-extra.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
*/
3939
define('WP_ENVIRONMENT_TYPE', getenv('WP_ENVIRONMENT_TYPE') ?: 'development');
4040

41+
/**
42+
* If WP_MULTISITE is defined, enable multisite constants
43+
*/
44+
if (getenv('WP_MULTISITE')) {
45+
define('MULTISITE', true); // problem?
46+
define('SUBDOMAIN_INSTALL', false); // problem? pre-defined?
47+
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
48+
}
49+
4150
/**
4251
* Explicitly define FS_METHOD so WordPress creates group-writeable files
4352
*/

0 commit comments

Comments
 (0)