Skip to content
Snippets Groups Projects
0183-fix-recaptcha-validate_user_signup-hook.patch 951 B
Newer Older
From 77926f741d799b195754acbd96291645e6222014 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 22 Aug 2015 18:42:44 +0100
Subject: [PATCH 183/229] fix recaptcha validate_user_signup hook

---
 wp-content/plugins/wp-recaptcha-bp/recaptcha.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php
index a9ea1d6c..2cb535b2 100644
--- a/wp-content/plugins/wp-recaptcha-bp/recaptcha.php
+++ b/wp-content/plugins/wp-recaptcha-bp/recaptcha.php
@@ -252,7 +252,7 @@ class ReCAPTCHAPlugin extends WPPlugin
                 $_POST['g-recaptcha-response'] == '') {
                 $result['errors']->add('blank_captcha',
                     $this->options['no_response_error']);
-                return $result['errors'];
+                return $result;
             }
 
             if ($this->_reCaptchaLib == null) {
-- 
2.17.1