facebook-for-woocommerce
facebook-for-woocommerce copied to clipboard
Check if fb_api_key is set before calling it
When PHP notices are on (or when WP_DEBUG is on) line 835 in facebook-commerce.php produces a warning (Undefined index: fb_api_key) when the plug-in isn't setup yet. This in turn generates a JavaScript error which leaves the user unable to start initial setup.
I added a fix which checks if the fb_api_key is set before calling it.
Hi legoblokje! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
If you have received this in error or have any questions, please contact us at [email protected]. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
I am closing this PR as stale.