Skip to content
Snippets Groups Projects
Commit 3348efdd authored by lechuck's avatar lechuck Committed by agata
Browse files

Fixed wp-recaptcha error handling in show_recaptcha_in_registration

parent bfcfb07c
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment