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 has returning wrong values when using "defined() or define()" #156

Closed
planetahuevo opened this issue Apr 16, 2023 · 1 comment
Closed

Comments

@planetahuevo
Copy link

Bug Report

Describe the current, buggy behavior

When using "wp config has" command, it only detects the Constants defined with this line:
define( 'WP_DEBUG', false );

If you define them like this:
defined( 'WP_DEBUG') or define( 'WP_DEBUG', false );

Then the command does not detect them and returns a rc of 1.

Describe what you would expect as the correct outcome

I will expect to detect the constant on both cases.

Let us know what environment you are running this on

This command does not output anything but I was checking it with  echo $? and getting the 1 instead of the 0 expected
@danielbachhuber
Copy link
Member

Thanks for the report, @planetahuevo !

This looks related to (and probably the same as) #121

Let's close this issue in favor of that one.

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

No branches or pull requests

2 participants