Make WordPress Core

Changeset 49335


Ignore:
Timestamp:
10/27/2020 06:31:27 PM (4 years ago)
Author:
desrosj
Message:

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.

See #48301.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/local-env/scripts/install.js

    r49121 r49335  
    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` );
    17 wp_cli( `config set WP_ENVIRONMENT_TYPE ${process.env.LOCAL_WP_ENVIRONMENT_TYPE}` );
     13wp_cli( `config set WP_DEBUG ${process.env.LOCAL_WP_DEBUG} --raw --type=constant` );
     14wp_cli( `config set WP_DEBUG_LOG ${process.env.LOCAL_WP_DEBUG_LOG} --raw --type=constant` );
     15wp_cli( `config set WP_DEBUG_DISPLAY ${process.env.LOCAL_WP_DEBUG_DISPLAY} --raw --type=constant` );
     16wp_cli( `config set SCRIPT_DEBUG ${process.env.LOCAL_SCRIPT_DEBUG} --raw --type=constant` );
     17wp_cli( `config set WP_ENVIRONMENT_TYPE ${process.env.LOCAL_WP_ENVIRONMENT_TYPE} --type=constant` );
    1818
    1919// Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories.
Note: See TracChangeset for help on using the changeset viewer.