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

[ wp config set WP_DEBUG false --raw –no-add ] - –no-add doesn't override #178

Closed
riccardodicurti opened this issue Mar 2, 2024 · 3 comments

Comments

@riccardodicurti
Copy link

I have in my wp-config.php define( 'WP_DEBUG', true ); and I tried to run the following command wp config set WP_DEBUG false --raw -no-add but unfortunately it does not change the value of WP_DEBUG.

@ernilambar
Copy link
Member

ernilambar commented Mar 21, 2024

I tried to reproduce the issue but could not. Can you please share more info? Output of wp cli info will be helpful. If possible please share the config file redacting private information if any.

@riccardodicurti
Copy link
Author

@ernilambar I have to apologize, I was launching the command with only one - ( -no-add ) instead of two ( --no-add ) and this returned error.

Maybe the documentation needs to be updated?

[--add]
Add the value if it doesn’t exist yet. This is the default behavior, override with –no-add.

@ernilambar
Copy link
Member

Hmm. It is correct in the PHP file. https://github.com/wp-cli/config-command/blob/main/src/Config_Command.php#L595-L597 It will be fixed in the documentation when handbook pages are regenerated.

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