humanmade / wp-stripe

WordPress Plug-in to manage donations made via the Stripe credit card payment solution
http://wordpress.org/extend/plugins/wp-stripe/
49 stars 22 forks source link

WP_STRIPE_KEY: Prevent assumed WP_STRIPE_KEY #31

Closed tchalvak closed 5 years ago

tchalvak commented 8 years ago

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.