From d295dee2debd70f13656234f5888275779ae4a1b Mon Sep 17 00:00:00 2001 From: lechuck <lechuck@autistici.org> Date: Sat, 26 Sep 2015 19:28:37 +0100 Subject: [PATCH 184/229] Fixed wp-recaptcha error handling in show_recaptcha_in_registration --- wp-content/plugins/wp-recaptcha-bp/recaptcha.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php index 2cb535b2..96d4fee0 100644 --- a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php +++ b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php @@ -211,7 +211,9 @@ class ReCAPTCHAPlugin extends WPPlugin // if it's for wordpress mu, show the errors if ($this->is_multi_blog()) { - $error = $errors->get_error_message('captcha'); + if( is_wp_error( $errors ) ) { + $error = $errors->get_error_message('captcha'); + } echo '<label for="verification">Verification:</label>'; echo ($error ? '<p class="error">' . $error . '</p>' : ''); echo $this->get_recaptcha_html(); -- 2.17.1