-
Notifications
You must be signed in to change notification settings - Fork 10
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 WP constants via vvv JSON file. #38
base: master
Are you sure you want to change the base?
Conversation
8045fb4
to
4223c35
Compare
Actually running into some issues with the previously defined constants. What do you think?
I am testing these options locally. May push a fix later today. But wanted to start a discussion. EDITED: to include examples of each. |
Use ifndef pattern in php instead of leading with debug constants.
9c72a34
to
d0e3aca
Compare
I just wanted to report I favor the ifndef pattern. Tested it and fixed a typo and rebased to one commit. The ifndef allows you to later comment out portions of the config files at a later point to revert to the debug values. |
bump |
Thanks @EHLOVader, really appreciate the effort here! What I would love to see is a system of sensible defaults that get overridden by values set in the json file. This way there is no artifacting left over in the wp-config.php, give overall control of the values to the project maintainer, but doesn't put an undue burden on the maintainer to always have them in the json file. Basically, if nothing is set for WP_DEBUG, then it would output as true. But if it IS defined in the json file, it would get output as whatever was specified, overriding the default. |
Exactly. That is what I was trying to do with the latter two cases. It has been awhile now, but I feel like I ran into a case where editing the json would result in the line being removed from the config, but not having a sensible default to fall back on in there already. |
This is an important one for me too. Like #37 I use it regularly because of old or improperly created themes or plugins. |
Adds the ability to set the WP constants through the json file and fixes issue #30
Safely handles boolean or text value configurations.