Commit 8b85b213 authored by lucha's avatar lucha Committed by kiki

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