-
Notifications
You must be signed in to change notification settings - Fork 37
Closed as not planned
Labels
command:configRelated to 'config' commandRelated to 'config' commandcommand:config-createRelated to 'config create' commandRelated to 'config create' command
Description
The example on the wp config create command's page has an issue. When I create a config like this:
wp config create --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
PHP
It adds the debug true, not seeing that by default debug false is already set. This creates warnings on every consecutive run of wp and also adds these to the log.
When doing wp config set WP_DEBUG true --raw instead, it changes the existing false setting to true, or creates it...
Should we be checking for these constants when adding them with --extra-php?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command:configRelated to 'config' commandRelated to 'config' commandcommand:config-createRelated to 'config create' commandRelated to 'config create' command