Commit 36486c65 authored by joe's avatar joe Committed by lechuck

set the correct recaptcha key where you have an empty one

parent 2bfc7004
......@@ -88,9 +88,14 @@ if (!class_exists('reCAPTCHA')) {
// set the default options
function register_default_options() {
if ($this->options)
return;
if ($this->options) {
if ($this->keys_missing) {
$this->options['public_key'] = GLOBAL_RECAPTCHA_KEY;
$this->options['private_key'] = GLOBAL_RECAPTCHA_PRIVATE_KEY;
WPPlugin::add_options($this->options_name, $this->options);
}
return;
}
$option_defaults = array();
$old_options = WPPlugin::retrieve_options("recaptcha");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment