Commit bd2894e7 authored by lechuck's avatar lechuck Committed by kiki

Fixed wp-recaptcha error handling in show_recaptcha_in_registration

parent 1e412932
......@@ -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();
......
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