-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
command:config-getRelated to 'config get' commandRelated to 'config get' commandcommand:config-listRelated to 'config list' commandRelated to 'config list' command
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
Running wp config list or wp config get, boolean values are shown as 1 / empty string.
$ wp config list
name value type
...
WP_DEBUG 1 constant
WP_DEBUG_LOG 1 constant
WP_DEBUG_DISPLAY constant
$ wp config get WP_DEBUG_DISPLAY
Describe the solution you'd like
Instead of echoing directly the boolean value, resulting in 1 / nothing, boolean values should be considered strictly and shown as true / false, i.e.
$ wp config list
name value type
...
WP_DEBUG true constant
WP_DEBUG_LOG true constant
WP_DEBUG_DISPLAY false constant
$ wp config get WP_DEBUG_DISPLAY
false
In this way we could understand better if we set really a false value or an empty string instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command:config-getRelated to 'config get' commandRelated to 'config get' commandcommand:config-listRelated to 'config list' commandRelated to 'config list' command