config-command
config-command copied to clipboard
SET and DELETE don't work with `defined( 'DB_USER' ) or `define( 'DB_USER', 'wp' );`
I have a lot of sites setup where every constant is noted as below. This allows me to pre-include overrides for different environments.
defined( 'DB_USER' ) or define( 'DB_USER', 'wp' );
The SET and DELETE commands fail.
PS I consider this low Priority, I've know this issue for at least 2 years. And I might try to fix this myself when I find time (the main reason for not reporting it sooner)
wp config get seems to have the same problem https://github.com/wp-cli/config-command/issues/156
If anyone would like to create a PR, the solution will probably need to live in https://github.com/wp-cli/wp-config-transformer