Skip to content

Commit d26e9ee

Browse files
committed
Build/Test Tools: Specify a type when using wp config set.
This prevents an error if constants are not predefined when running the Docker install script while using older combinations of WordPress/PHP/WP-CLI. Backports [49335] to the 5.4 branch. See #48301. git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49341 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3d5b673 commit d26e9ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/local-env/scripts/install.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ wp_cli( 'config create --dbname=wordpress_develop --dbuser=root --dbpass=passwor
1010

1111
// Add the debug settings to wp-config.php.
1212
// Windows requires this to be done as an additional step, rather than using the --extra-php option in the previous step.
13-
wp_cli( `config set WP_DEBUG ${process.env.LOCAL_WP_DEBUG} --raw` );
14-
wp_cli( `config set WP_DEBUG_LOG ${process.env.LOCAL_WP_DEBUG_LOG} --raw` );
15-
wp_cli( `config set WP_DEBUG_DISPLAY ${process.env.LOCAL_WP_DEBUG_DISPLAY} --raw` );
16-
wp_cli( `config set SCRIPT_DEBUG ${process.env.LOCAL_SCRIPT_DEBUG} --raw` );
13+
wp_cli( `config set WP_DEBUG ${process.env.LOCAL_WP_DEBUG} --raw --type=constant` );
14+
wp_cli( `config set WP_DEBUG_LOG ${process.env.LOCAL_WP_DEBUG_LOG} --raw --type=constant` );
15+
wp_cli( `config set WP_DEBUG_DISPLAY ${process.env.LOCAL_WP_DEBUG_DISPLAY} --raw --type=constant` );
16+
wp_cli( `config set SCRIPT_DEBUG ${process.env.LOCAL_SCRIPT_DEBUG} --raw --type=constant` );
1717

1818
// Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories.
1919
renameSync( 'src/wp-config.php', 'wp-config.php' );

0 commit comments

Comments
 (0)