Commit 9b395e10 authored by lucha's avatar lucha

removed obsolete require_once('config.php') from recaptcha-bp plugin

the configuration directive has been moved to wp-config.php, so it was
duplicated. Should solve part of
https://git.autistici.org/ai/noblogs-wp/issues/13
parent 1b07c61f
......@@ -11,7 +11,6 @@
* @link http://www.google.com/recaptcha
*/
require_once('config.php');
require_once('wp-plugin.php');
if (class_exists('ReCAPTCHAPlugin'))
......@@ -138,7 +137,7 @@ class ReCAPTCHAPlugin extends WPPlugin
$option_defaults['comments_theme'] = 'standard';
$option_defaults['recaptcha_language'] = $old_options['recaptcha_language'];
$option_defaults['no_response_error'] = $old_options['no_response_error'];
} else {
} else {
$option_defaults['site_key'] = GLOBAL_RECAPTCHA_KEY;
$option_defaults['secret'] = GLOBAL_RECAPTCHA_PRIVATE_KEY;
$option_defaults['comments_theme'] = 'standard';
......@@ -302,7 +301,7 @@ class ReCAPTCHAPlugin extends WPPlugin
<noscript>
<style type='text/css'>#submit {display:none;}</style>
<input name="submit" type="submit" id="submit-alt" tabindex="6"
value="Submit Comment"/>
value="Submit Comment"/>
</noscript>
COMMENT_FORM;
......@@ -321,7 +320,7 @@ COMMENT_FORM;
document.getElementById('recaptcha-submit-btn-area').appendChild (sub);
document.getElementById('submit').tabIndex = 6;
if ( typeof _recaptcha_wordpress_savedcomment != 'undefined') {
document.getElementById('comment').value =
document.getElementById('comment').value =
_recaptcha_wordpress_savedcomment;
}
</script>
......@@ -406,7 +405,7 @@ JS;
wp_delete_comment($comment->comment_ID);
}
}
// add a settings link to the plugin in the plugin list
function show_settings_link($links, $file) {
if ($file == plugin_basename($this->path_to_plugin_directory() .
......
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