Make WordPress Core

Changeset 49342


Ignore:
Timestamp:
10/27/2020 07:06:15 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.

Backports [49335] to the 5.3 branch.
See #48301.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/tools/local-env/scripts/install.js

    r45783 r49342  
    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` );
     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` );
    1717
    1818// 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.