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_STRIPE_KEY: Prevent assumed WP_STRIPE_KEY #31

Closed
wants to merge 2 commits into from

Conversation

tchalvak
Copy link

by checking whether the constant is defined or else giving null.
Fixes #25.

Sadly, PHP constants are annoying like this, they default to strings if not defined, and strings are equivalent to true.

by checking whether the constant is defined or else giving null.
Fixes humanmade#25.
for wordpress 4.4 and php 5 style constructors on widgets (the only type available in php 7)
@tchalvak tchalvak closed this Mar 4, 2019
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

Successfully merging this pull request may close these issues.

1 participant