Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET and DELETE don't work with defined( 'DB_USER' ) or define( 'DB_USER', 'wp' );` #121

Open
janw-me opened this issue Feb 17, 2021 · 2 comments

Comments

@janw-me
Copy link
Member

janw-me commented Feb 17, 2021

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.

@janw-me
Copy link
Member Author

janw-me commented Feb 17, 2021

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)

@danielbachhuber danielbachhuber changed the title SET and DELETE don't work with my syntax. SET and DELETE don't work with defined( 'DB_USER' ) or define( 'DB_USER', 'wp' );` Nov 15, 2022
@danielbachhuber
Copy link
Member

wp config get seems to have the same problem #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants