diff --git a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php index 7c16045ecbebb79b3c0dcaac733c153466c812e7..a9ea1d6c7a53be3e411aebdb8b0aaa3b2c0f04e4 100644 --- a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php +++ b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php @@ -111,8 +111,14 @@ class ReCAPTCHAPlugin extends WPPlugin // set the default options function register_default_options() { - if ($this->options) + if ($this->options) { + if ($this->keys_missing()) { + $this->options['site_key'] = GLOBAL_RECAPTCHA_KEY; + $this->options['secret'] = GLOBAL_RECAPTCHA_PRIVATE_KEY; + WPPlugin::add_options($this->options_name, $this->options); + } return; + } $option_defaults = array(); $old_options = WPPlugin::retrieve_options("recaptcha"); if ($old_options) { @@ -172,9 +178,11 @@ class ReCAPTCHAPlugin extends WPPlugin } function missing_keys_notice() { + /* if ($this->keys_missing()) { $this->create_error_notice('reCAPTCHA API Keys are missing.'); } + */ } function validate_dropdown($array, $key, $value) {