Skip to content

Commit 9b33d97

Browse files
committed
feat: add more mandatory custom settings
1 parent 1be7eab commit 9b33d97

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/Build/ModifyWordPressConfigurationStep.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,23 @@ private function modifyWordPressConfig(array $environment)
8989
throw new RuntimeException('Unable to read wp-config.php');
9090
}
9191

92-
$constants = ['AUTH_KEY', 'SECURE_AUTH_KEY', 'LOGGED_IN_KEY', 'NONCE_KEY', 'AUTH_SALT', 'SECURE_AUTH_SALT', 'LOGGED_IN_SALT', 'NONCE_SALT', 'DOMAIN_CURRENT_SITE', 'WP_HOME', 'WP_SITEURL'];
92+
$constants = [
93+
'AUTH_KEY',
94+
'SECURE_AUTH_KEY',
95+
'LOGGED_IN_KEY',
96+
'NONCE_KEY',
97+
'AUTH_SALT',
98+
'SECURE_AUTH_SALT',
99+
'LOGGED_IN_SALT',
100+
'NONCE_SALT',
101+
'AUTOMATIC_UPDATER_DISABLED',
102+
'DISABLE_WP_CRON',
103+
'DISALLOW_FILE_EDIT',
104+
'DISALLOW_FILE_MODS',
105+
'DOMAIN_CURRENT_SITE',
106+
'WP_HOME',
107+
'WP_SITEURL',
108+
];
93109

94110
if (!empty($environment['database'])) {
95111
$constants = array_merge($constants, ['DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASSWORD']);

stubs/ymir-config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@
3333

3434
define('WP_HOME', getenv('WP_HOME'));
3535
define('WP_SITEURL', getenv('WP_SITEURL'));
36+
37+
define('AUTOMATIC_UPDATER_DISABLED', true);
38+
define('DISABLE_WP_CRON', true);
39+
define('DISALLOW_FILE_EDIT', true);
40+
define('DISALLOW_FILE_MODS', true);

0 commit comments

Comments
 (0)