WordPress ReCaptcha Integration - Version 1.0.3

Version Description

  • Add BuddyPress support
  • Action hook for wp_recaptcha_checked
  • NoCaptcha: add non-js fallback.
  • Code: pass WP_Error to wp_die() when comment captcha fails.
  • Code: Rename filters recaptcha_required > wp_recaptcha_required and recaptcha_disabled_html > wp_recaptcha_disabled_html
  • Happy New Year!
Download this release

Release Info

Developer podpirate
Plugin Icon 128x128 WordPress ReCaptcha Integration
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

inc/class-wp-recaptcha-options.php CHANGED
@@ -317,7 +317,7 @@ class WP_reCaptcha_Options {
317
  $errs = array(
318
  'missing-input-secret' => __('The secret Key is missing.','wp-recaptcha-integration'),
319
  'invalid-input-secret' => __('The secret Key is invalid. You better check your domain configuration and enter it again.','wp-recaptcha-integration'),
320
- 'missing-input-response' => __('The user response was missing ','wp-recaptcha-integration'),
321
  'invalid-input-response' => __('Invalid user response','wp-recaptcha-integration'),
322
  );
323
  $result = WP_reCaptcha::instance()->get_last_result();
317
  $errs = array(
318
  'missing-input-secret' => __('The secret Key is missing.','wp-recaptcha-integration'),
319
  'invalid-input-secret' => __('The secret Key is invalid. You better check your domain configuration and enter it again.','wp-recaptcha-integration'),
320
+ 'missing-input-response' => __('The user response was missing','wp-recaptcha-integration'),
321
  'invalid-input-response' => __('Invalid user response','wp-recaptcha-integration'),
322
  );
323
  $result = WP_reCaptcha::instance()->get_last_result();
inc/contact_form_7_recaptcha.php CHANGED
@@ -10,7 +10,7 @@ add_action( 'wpcf7_init', 'wpcf7_add_shortcode_recaptcha' );
10
 
11
  function wpcf7_recaptcha_shortcode_handler( $tag ) {
12
  if ( ! WP_reCaptcha::instance()->is_required() )
13
- return apply_filters( 'recaptcha_disabled_html' ,'');
14
  $tag = new WPCF7_Shortcode( $tag );
15
  if ( empty( $tag->name ) )
16
  return '';
10
 
11
  function wpcf7_recaptcha_shortcode_handler( $tag ) {
12
  if ( ! WP_reCaptcha::instance()->is_required() )
13
+ return apply_filters( 'wp_recaptcha_disabled_html' ,'');
14
  $tag = new WPCF7_Shortcode( $tag );
15
  if ( empty( $tag->name ) )
16
  return '';
inc/ninja_forms_field_recaptcha.php CHANGED
@@ -77,7 +77,7 @@ function ninja_forms_field_recaptcha_display($field_id, $data){
77
  if ( WP_reCaptcha::instance()->is_required() )
78
  WP_reCaptcha::instance()->print_recaptcha_html();
79
  else
80
- echo apply_filters( 'recaptcha_disabled_html' ,'');
81
  }
82
 
83
  function ninja_forms_field_recaptcha_pre_process( $field_id, $user_value ){
77
  if ( WP_reCaptcha::instance()->is_required() )
78
  WP_reCaptcha::instance()->print_recaptcha_html();
79
  else
80
+ echo apply_filters( 'wp_recaptcha_disabled_html' ,'');
81
  }
82
 
83
  function ninja_forms_field_recaptcha_pre_process( $field_id, $user_value ){
languages/wp-recaptcha-integration-de_DE.mo CHANGED
Binary file
languages/wp-recaptcha-integration-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP reCaptcha Integration v1.0.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2014-12-29 13:22:41+0000\n"
7
  "Last-Translator: admin <joern@flyingletters.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -20,44 +20,44 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Textdomain-Support: yes"
22
 
23
- #: inc/ninja_forms_field_recaptcha.php:69
24
- #: wp-recaptcha-integration.php:157
25
- #: wp-recaptcha-integration.php:164
26
  #@ wp-recaptcha-integration
27
  msgid "<strong>Error:</strong> the Captcha didn’t verify."
28
  msgstr "<strong>Fehler:</strong> Sicherheitstest nicht bestanden"
29
 
30
- #: wp-recaptcha-integration.php:255
31
  #@ wp-recaptcha-integration
32
  msgid "Sorry, the Captcha didn’t verify."
33
  msgstr "Tut uns leid, aber Sie haben den Sicherheitstest nicht bestanden."
34
 
35
- #: wp-recaptcha-integration.php:298
36
  #@ wp-recaptcha-integration
37
  msgid "Incorrect please try again"
38
  msgstr "Falsch. Bitte noch einmal versuchen"
39
 
40
- #: wp-recaptcha-integration.php:300
41
  #@ wp-recaptcha-integration
42
  msgid "Enter the words above:"
43
  msgstr "Geben Sie die Wörten oben ein."
44
 
45
- #: wp-recaptcha-integration.php:301
46
  #@ wp-recaptcha-integration
47
  msgid "Enter the numbers you hear:"
48
  msgstr "Geben Sie die Zahlen ein, die Sie hören:"
49
 
50
- #: wp-recaptcha-integration.php:305
51
  #@ wp-recaptcha-integration
52
  msgid "Get another CAPTCHA"
53
  msgstr "Anderes CAPTCHA."
54
 
55
- #: wp-recaptcha-integration.php:306
56
  #@ wp-recaptcha-integration
57
  msgid "Get an audio CAPTCHA"
58
  msgstr "Audio CAPTCHA"
59
 
60
- #: wp-recaptcha-integration.php:307
61
  #@ wp-recaptcha-integration
62
  msgid "Get an image CAPTCHA"
63
  msgstr "Bild CAPTCHA"
@@ -88,7 +88,7 @@ msgstr ""
88
  msgid "The Captcha didn’t verify."
89
  msgstr "Sicherheitstest nicht bestanden"
90
 
91
- #: inc/class-wp-recaptcha-options.php:148
92
  #, php-format
93
  #@ wp-recaptcha-integration
94
  msgid "<strong>reCaptcha needs your attention:</strong> To make it work You need to enter an api key. <br />You can do so at the <a href=\"%s\">reCaptcha settings page</a>."
@@ -97,88 +97,88 @@ msgstr ""
97
  "braucht Deine Aufmerksamkeit:</strong> Damit das reCaptch funktioniert, mußt Du einen API-Schlüssel eintragen. <br />Zu den <a \n"
98
  "href=\"%s\">reCaptcha Einstellungen</a>."
99
 
100
- #: inc/class-wp-recaptcha-options.php:169
101
  #@ wp-recaptcha-integration
102
  msgid "Public Key"
103
  msgstr "Public Key"
104
 
105
- #: inc/class-wp-recaptcha-options.php:170
106
  #@ wp-recaptcha-integration
107
  msgid "Private Key"
108
  msgstr "Private Key"
109
 
110
- #: inc/class-wp-recaptcha-options.php:171
111
- #: inc/class-wp-recaptcha-options.php:177
112
  #@ wp-recaptcha-integration
113
  msgid "Connecting"
114
  msgstr "Verbindung"
115
 
116
- #: inc/class-wp-recaptcha-options.php:246
117
  #@ wp-recaptcha-integration
118
  msgid "Features"
119
  msgstr "Funktionen"
120
 
121
- #: inc/class-wp-recaptcha-options.php:189
122
  #@ wp-recaptcha-integration
123
  msgid "Flavor"
124
  msgstr "Geschmacksrichtung"
125
 
126
- #: inc/class-wp-recaptcha-options.php:200
127
  #@ wp-recaptcha-integration
128
  msgid "Old style reCAPTCHA where you type some cryptic text"
129
  msgstr "Klassisch, man muß kryptische Wörter eingeben"
130
 
131
- #: inc/class-wp-recaptcha-options.php:205
132
  #@ wp-recaptcha-integration
133
  msgid "Theme"
134
  msgstr "Theme"
135
 
136
- #: inc/class-wp-recaptcha-options.php:221
137
  #@ wp-recaptcha-integration
138
  msgid "Protect Comments"
139
  msgstr "Kommentare schützen"
140
 
141
- #: inc/class-wp-recaptcha-options.php:223
142
  #@ wp-recaptcha-integration
143
  msgid "Protect comment forms with recaptcha."
144
  msgstr "Das Kommentarformular mit einem reCaptcha schützen"
145
 
146
- #: inc/class-wp-recaptcha-options.php:226
147
  #@ wp-recaptcha-integration
148
  msgid "Protect Signup"
149
  msgstr "Registrierung schützen"
150
 
151
- #: inc/class-wp-recaptcha-options.php:228
152
  #@ wp-recaptcha-integration
153
  msgid "Protect signup form with recaptcha."
154
  msgstr "Die Registrierung mit einem reCaptcha schützen."
155
 
156
- #: inc/class-wp-recaptcha-options.php:231
157
  #@ wp-recaptcha-integration
158
  msgid "Protect Login"
159
  msgstr "Login schützen"
160
 
161
- #: inc/class-wp-recaptcha-options.php:233
162
  #@ wp-recaptcha-integration
163
  msgid "Protect Login form with recaptcha."
164
  msgstr "Das Anmeldeformular mit einem reCaptcha schützen"
165
 
166
- #: inc/class-wp-recaptcha-options.php:241
167
  #@ wp-recaptcha-integration
168
  msgid "Disable for known users"
169
  msgstr "Abschalten bei bekannten Benutzern"
170
 
171
- #: inc/class-wp-recaptcha-options.php:243
172
  #@ wp-recaptcha-integration
173
  msgid "Disable reCaptcha verification for logged in users."
174
  msgstr "Die reCaptcha-Verifizierung für eingeloggte Benutzer deaktivieren"
175
 
176
- #: inc/class-wp-recaptcha-options.php:249
177
  #@ wp-recaptcha-integration
178
  msgid "Please configure the public and private key. <a href=\"http://www.google.com/recaptcha/whyrecaptcha\">What are you trying to tell me?</a>"
179
  msgstr "Bitte konfigurieren Sie den privaten und den Öffentlichen Schlüssel (private &amp; public key). <a href=\"http://www.google.com/recaptcha/whyrecaptcha\">Was willst Du mir damit zu sagen?</a>"
180
 
181
- #: inc/class-wp-recaptcha-options.php:262
182
  #, php-format
183
  #@ wp-recaptcha-integration
184
  msgid "Please register your blog through the <a href=\"%s\">Google reCAPTCHA admin page</a> and enter the public and private key in the fields below. <a href=\"%s\">What is this all about</a>"
@@ -187,140 +187,145 @@ msgstr ""
187
  "und trage unten den öffentlichen und privaten Schüssel ein. <a \n"
188
  "href=\"%s\">Was erzählst Du mir da?</a>"
189
 
190
- #: inc/class-wp-recaptcha-options.php:270
191
  #@ wp-recaptcha-integration
192
  msgid "You already entered an API Key. Use the button below to enter it again."
193
  msgstr "Du hast schon einen API-Schlüssel eingetragen. Klick den Button unten, um es nochmal zu tun."
194
 
195
- #: inc/class-wp-recaptcha-options.php:281
196
  #@ wp-recaptcha-integration
197
  msgid "New API Key"
198
  msgstr "Neuer API-Schlüssel"
199
 
200
- #: inc/class-wp-recaptcha-options.php:339
201
  #@ default
202
  msgid "Cancel"
203
  msgstr ""
204
 
205
- #: inc/class-wp-recaptcha-options.php:409
206
  #@ wp-recaptcha-integration
207
  msgid "Light"
208
  msgstr "Hell"
209
 
210
- #: inc/class-wp-recaptcha-options.php:413
211
  #@ wp-recaptcha-integration
212
  msgid "Dark"
213
  msgstr "Dunkel"
214
 
215
- #: inc/class-wp-recaptcha-options.php:418
216
  #@ wp-recaptcha-integration
217
  msgid "Red"
218
  msgstr "Rot"
219
 
220
- #: inc/class-wp-recaptcha-options.php:422
221
  #@ wp-recaptcha-integration
222
  msgid "White"
223
  msgstr "Weiß"
224
 
225
- #: inc/class-wp-recaptcha-options.php:426
226
  #@ wp-recaptcha-integration
227
  msgid "Black Glass"
228
  msgstr "Schwarzes Glas"
229
 
230
- #: inc/class-wp-recaptcha-options.php:430
231
  #@ wp-recaptcha-integration
232
  msgid "Clean"
233
  msgstr "Clean"
234
 
235
- #: inc/class-wp-recaptcha-options.php:434
236
  #@ wp-recaptcha-integration
237
  msgid "Custom"
238
  msgstr "Eigenes"
239
 
240
- #: inc/class-wp-recaptcha-options.php:454
241
  #@ wp-recaptcha-integration
242
  msgid "Unstyled HTML to apply your own Stylesheets."
243
  msgstr "Pures HTML für Deine eigenen Stylessheets"
244
 
245
- #: inc/class-wp-recaptcha-options.php:498
246
- #: inc/class-wp-recaptcha-options.php:522
247
  #@ wp-recaptcha-integration
248
  msgid "ReCaptcha"
249
  msgstr "ReCaptcha"
250
 
251
- #: inc/class-wp-recaptcha-options.php:520
252
  #@ default
253
  msgid "Settings"
254
  msgstr ""
255
 
256
- #: inc/class-wp-recaptcha-options.php:196
257
  #@ wp-recaptcha-integration
258
  msgid "No Captcha where you just click a button"
259
  msgstr "No Captcha. Einfach Checkbox anklicken."
260
 
261
- #: inc/class-wp-recaptcha-options.php:236
262
  #@ wp-recaptcha-integration
263
  msgid "Protect Lost Password"
264
  msgstr "Passwort verloren schützen"
265
 
266
- #: inc/class-wp-recaptcha-options.php:238
267
  #@ wp-recaptcha-integration
268
  msgid "Protect Lost Password form with recaptcha."
269
  msgstr "Das Passwort Verloren Formular mit einem reCaptcha schützen"
270
 
271
- #: inc/class-wp-recaptcha-options.php:89
272
- #: inc/class-wp-recaptcha-options.php:101
273
  #@ wp-recaptcha-integration
274
  msgid "reCaptcha Settings"
275
  msgstr "reCaptcha Einstellungen"
276
 
277
- #: inc/class-wp-recaptcha-options.php:90
278
  #@ wp-recaptcha-integration
279
  msgid "reCaptcha"
280
  msgstr "reCaptcha"
281
 
282
- #: inc/class-wp-recaptcha-options.php:282
283
  #@ wp-recaptcha-integration
284
  msgid "Test API Key"
285
  msgstr "API Schlüssel testen"
286
 
287
- #: inc/class-wp-recaptcha-options.php:302
288
  #@ wp-recaptcha-integration
289
  msgid "Test verfication"
290
  msgstr "Captcha-Prüfung testen"
291
 
292
- #: inc/class-wp-recaptcha-options.php:315
293
  #@ wp-recaptcha-integration
294
  msgid "The secret Key is missing."
295
  msgstr "Der geheime Schlüssel fehlt."
296
 
297
- #: inc/class-wp-recaptcha-options.php:316
298
  #@ wp-recaptcha-integration
299
  msgid "The secret Key is invalid. You better check your domain configuration and enter it again."
300
  msgstr "Der geheime Schlüssel ist ungültig. Am besten prüfst Du Deine Domain.-Konfiguration und trägst ihn nochmal ein."
301
 
302
- #: inc/class-wp-recaptcha-options.php:317
303
- #@ wp-recaptcha-integration
304
- msgid "The user response was missing "
305
- msgstr ""
306
-
307
- #: inc/class-wp-recaptcha-options.php:318
308
  #@ wp-recaptcha-integration
309
  msgid "Invalid user response"
310
- msgstr ""
311
 
312
- #: inc/class-wp-recaptcha-options.php:327
313
  #@ wp-recaptcha-integration
314
  msgid "Works! All good!"
315
  msgstr "Läuft! Sehr gut."
316
 
317
- #: inc/class-wp-recaptcha-options.php:207
318
  #@ wp-recaptcha-integration
319
  msgid "Disable Submit Button"
320
  msgstr "Absendebutton deaktivieren"
321
 
322
- #: inc/class-wp-recaptcha-options.php:209
323
  #@ wp-recaptcha-integration
324
  msgid "Disable Form Submit Button until no-captcha is entered."
325
  msgstr "Den Absendenbutton deaktivieren, bis das Captcha gelöst wurde."
326
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP reCaptcha Integration v1.0.3\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-12-31 12:41:25+0000\n"
7
  "Last-Translator: admin <joern@flyingletters.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Textdomain-Support: yes"
22
 
23
+ #: inc/ninja_forms_field_recaptcha.php:85
24
+ #: wp-recaptcha-integration.php:196
25
+ #: wp-recaptcha-integration.php:208
26
  #@ wp-recaptcha-integration
27
  msgid "<strong>Error:</strong> the Captcha didn’t verify."
28
  msgstr "<strong>Fehler:</strong> Sicherheitstest nicht bestanden"
29
 
30
+ #: wp-recaptcha-integration.php:338
31
  #@ wp-recaptcha-integration
32
  msgid "Sorry, the Captcha didn’t verify."
33
  msgstr "Tut uns leid, aber Sie haben den Sicherheitstest nicht bestanden."
34
 
35
+ #: wp-recaptcha-integration.php:412
36
  #@ wp-recaptcha-integration
37
  msgid "Incorrect please try again"
38
  msgstr "Falsch. Bitte noch einmal versuchen"
39
 
40
+ #: wp-recaptcha-integration.php:414
41
  #@ wp-recaptcha-integration
42
  msgid "Enter the words above:"
43
  msgstr "Geben Sie die Wörten oben ein."
44
 
45
+ #: wp-recaptcha-integration.php:415
46
  #@ wp-recaptcha-integration
47
  msgid "Enter the numbers you hear:"
48
  msgstr "Geben Sie die Zahlen ein, die Sie hören:"
49
 
50
+ #: wp-recaptcha-integration.php:419
51
  #@ wp-recaptcha-integration
52
  msgid "Get another CAPTCHA"
53
  msgstr "Anderes CAPTCHA."
54
 
55
+ #: wp-recaptcha-integration.php:420
56
  #@ wp-recaptcha-integration
57
  msgid "Get an audio CAPTCHA"
58
  msgstr "Audio CAPTCHA"
59
 
60
+ #: wp-recaptcha-integration.php:421
61
  #@ wp-recaptcha-integration
62
  msgid "Get an image CAPTCHA"
63
  msgstr "Bild CAPTCHA"
88
  msgid "The Captcha didn’t verify."
89
  msgstr "Sicherheitstest nicht bestanden"
90
 
91
+ #: inc/class-wp-recaptcha-options.php:151
92
  #, php-format
93
  #@ wp-recaptcha-integration
94
  msgid "<strong>reCaptcha needs your attention:</strong> To make it work You need to enter an api key. <br />You can do so at the <a href=\"%s\">reCaptcha settings page</a>."
97
  "braucht Deine Aufmerksamkeit:</strong> Damit das reCaptch funktioniert, mußt Du einen API-Schlüssel eintragen. <br />Zu den <a \n"
98
  "href=\"%s\">reCaptcha Einstellungen</a>."
99
 
100
+ #: inc/class-wp-recaptcha-options.php:172
101
  #@ wp-recaptcha-integration
102
  msgid "Public Key"
103
  msgstr "Public Key"
104
 
105
+ #: inc/class-wp-recaptcha-options.php:173
106
  #@ wp-recaptcha-integration
107
  msgid "Private Key"
108
  msgstr "Private Key"
109
 
110
+ #: inc/class-wp-recaptcha-options.php:174
111
+ #: inc/class-wp-recaptcha-options.php:180
112
  #@ wp-recaptcha-integration
113
  msgid "Connecting"
114
  msgstr "Verbindung"
115
 
116
+ #: inc/class-wp-recaptcha-options.php:249
117
  #@ wp-recaptcha-integration
118
  msgid "Features"
119
  msgstr "Funktionen"
120
 
121
+ #: inc/class-wp-recaptcha-options.php:192
122
  #@ wp-recaptcha-integration
123
  msgid "Flavor"
124
  msgstr "Geschmacksrichtung"
125
 
126
+ #: inc/class-wp-recaptcha-options.php:203
127
  #@ wp-recaptcha-integration
128
  msgid "Old style reCAPTCHA where you type some cryptic text"
129
  msgstr "Klassisch, man muß kryptische Wörter eingeben"
130
 
131
+ #: inc/class-wp-recaptcha-options.php:208
132
  #@ wp-recaptcha-integration
133
  msgid "Theme"
134
  msgstr "Theme"
135
 
136
+ #: inc/class-wp-recaptcha-options.php:224
137
  #@ wp-recaptcha-integration
138
  msgid "Protect Comments"
139
  msgstr "Kommentare schützen"
140
 
141
+ #: inc/class-wp-recaptcha-options.php:226
142
  #@ wp-recaptcha-integration
143
  msgid "Protect comment forms with recaptcha."
144
  msgstr "Das Kommentarformular mit einem reCaptcha schützen"
145
 
146
+ #: inc/class-wp-recaptcha-options.php:229
147
  #@ wp-recaptcha-integration
148
  msgid "Protect Signup"
149
  msgstr "Registrierung schützen"
150
 
151
+ #: inc/class-wp-recaptcha-options.php:231
152
  #@ wp-recaptcha-integration
153
  msgid "Protect signup form with recaptcha."
154
  msgstr "Die Registrierung mit einem reCaptcha schützen."
155
 
156
+ #: inc/class-wp-recaptcha-options.php:234
157
  #@ wp-recaptcha-integration
158
  msgid "Protect Login"
159
  msgstr "Login schützen"
160
 
161
+ #: inc/class-wp-recaptcha-options.php:236
162
  #@ wp-recaptcha-integration
163
  msgid "Protect Login form with recaptcha."
164
  msgstr "Das Anmeldeformular mit einem reCaptcha schützen"
165
 
166
+ #: inc/class-wp-recaptcha-options.php:244
167
  #@ wp-recaptcha-integration
168
  msgid "Disable for known users"
169
  msgstr "Abschalten bei bekannten Benutzern"
170
 
171
+ #: inc/class-wp-recaptcha-options.php:246
172
  #@ wp-recaptcha-integration
173
  msgid "Disable reCaptcha verification for logged in users."
174
  msgstr "Die reCaptcha-Verifizierung für eingeloggte Benutzer deaktivieren"
175
 
176
+ #: inc/class-wp-recaptcha-options.php:252
177
  #@ wp-recaptcha-integration
178
  msgid "Please configure the public and private key. <a href=\"http://www.google.com/recaptcha/whyrecaptcha\">What are you trying to tell me?</a>"
179
  msgstr "Bitte konfigurieren Sie den privaten und den Öffentlichen Schlüssel (private &amp; public key). <a href=\"http://www.google.com/recaptcha/whyrecaptcha\">Was willst Du mir damit zu sagen?</a>"
180
 
181
+ #: inc/class-wp-recaptcha-options.php:265
182
  #, php-format
183
  #@ wp-recaptcha-integration
184
  msgid "Please register your blog through the <a href=\"%s\">Google reCAPTCHA admin page</a> and enter the public and private key in the fields below. <a href=\"%s\">What is this all about</a>"
187
  "und trage unten den öffentlichen und privaten Schüssel ein. <a \n"
188
  "href=\"%s\">Was erzählst Du mir da?</a>"
189
 
190
+ #: inc/class-wp-recaptcha-options.php:273
191
  #@ wp-recaptcha-integration
192
  msgid "You already entered an API Key. Use the button below to enter it again."
193
  msgstr "Du hast schon einen API-Schlüssel eingetragen. Klick den Button unten, um es nochmal zu tun."
194
 
195
+ #: inc/class-wp-recaptcha-options.php:284
196
  #@ wp-recaptcha-integration
197
  msgid "New API Key"
198
  msgstr "Neuer API-Schlüssel"
199
 
200
+ #: inc/class-wp-recaptcha-options.php:342
201
  #@ default
202
  msgid "Cancel"
203
  msgstr ""
204
 
205
+ #: inc/class-wp-recaptcha-options.php:412
206
  #@ wp-recaptcha-integration
207
  msgid "Light"
208
  msgstr "Hell"
209
 
210
+ #: inc/class-wp-recaptcha-options.php:416
211
  #@ wp-recaptcha-integration
212
  msgid "Dark"
213
  msgstr "Dunkel"
214
 
215
+ #: inc/class-wp-recaptcha-options.php:421
216
  #@ wp-recaptcha-integration
217
  msgid "Red"
218
  msgstr "Rot"
219
 
220
+ #: inc/class-wp-recaptcha-options.php:425
221
  #@ wp-recaptcha-integration
222
  msgid "White"
223
  msgstr "Weiß"
224
 
225
+ #: inc/class-wp-recaptcha-options.php:429
226
  #@ wp-recaptcha-integration
227
  msgid "Black Glass"
228
  msgstr "Schwarzes Glas"
229
 
230
+ #: inc/class-wp-recaptcha-options.php:433
231
  #@ wp-recaptcha-integration
232
  msgid "Clean"
233
  msgstr "Clean"
234
 
235
+ #: inc/class-wp-recaptcha-options.php:437
236
  #@ wp-recaptcha-integration
237
  msgid "Custom"
238
  msgstr "Eigenes"
239
 
240
+ #: inc/class-wp-recaptcha-options.php:457
241
  #@ wp-recaptcha-integration
242
  msgid "Unstyled HTML to apply your own Stylesheets."
243
  msgstr "Pures HTML für Deine eigenen Stylessheets"
244
 
245
+ #: inc/class-wp-recaptcha-options.php:501
246
+ #: inc/class-wp-recaptcha-options.php:525
247
  #@ wp-recaptcha-integration
248
  msgid "ReCaptcha"
249
  msgstr "ReCaptcha"
250
 
251
+ #: inc/class-wp-recaptcha-options.php:523
252
  #@ default
253
  msgid "Settings"
254
  msgstr ""
255
 
256
+ #: inc/class-wp-recaptcha-options.php:199
257
  #@ wp-recaptcha-integration
258
  msgid "No Captcha where you just click a button"
259
  msgstr "No Captcha. Einfach Checkbox anklicken."
260
 
261
+ #: inc/class-wp-recaptcha-options.php:239
262
  #@ wp-recaptcha-integration
263
  msgid "Protect Lost Password"
264
  msgstr "Passwort verloren schützen"
265
 
266
+ #: inc/class-wp-recaptcha-options.php:241
267
  #@ wp-recaptcha-integration
268
  msgid "Protect Lost Password form with recaptcha."
269
  msgstr "Das Passwort Verloren Formular mit einem reCaptcha schützen"
270
 
271
+ #: inc/class-wp-recaptcha-options.php:92
272
+ #: inc/class-wp-recaptcha-options.php:104
273
  #@ wp-recaptcha-integration
274
  msgid "reCaptcha Settings"
275
  msgstr "reCaptcha Einstellungen"
276
 
277
+ #: inc/class-wp-recaptcha-options.php:93
278
  #@ wp-recaptcha-integration
279
  msgid "reCaptcha"
280
  msgstr "reCaptcha"
281
 
282
+ #: inc/class-wp-recaptcha-options.php:285
283
  #@ wp-recaptcha-integration
284
  msgid "Test API Key"
285
  msgstr "API Schlüssel testen"
286
 
287
+ #: inc/class-wp-recaptcha-options.php:305
288
  #@ wp-recaptcha-integration
289
  msgid "Test verfication"
290
  msgstr "Captcha-Prüfung testen"
291
 
292
+ #: inc/class-wp-recaptcha-options.php:318
293
  #@ wp-recaptcha-integration
294
  msgid "The secret Key is missing."
295
  msgstr "Der geheime Schlüssel fehlt."
296
 
297
+ #: inc/class-wp-recaptcha-options.php:319
298
  #@ wp-recaptcha-integration
299
  msgid "The secret Key is invalid. You better check your domain configuration and enter it again."
300
  msgstr "Der geheime Schlüssel ist ungültig. Am besten prüfst Du Deine Domain.-Konfiguration und trägst ihn nochmal ein."
301
 
302
+ #: inc/class-wp-recaptcha-options.php:321
 
 
 
 
 
303
  #@ wp-recaptcha-integration
304
  msgid "Invalid user response"
305
+ msgstr "Ungültige Antwort"
306
 
307
+ #: inc/class-wp-recaptcha-options.php:330
308
  #@ wp-recaptcha-integration
309
  msgid "Works! All good!"
310
  msgstr "Läuft! Sehr gut."
311
 
312
+ #: inc/class-wp-recaptcha-options.php:210
313
  #@ wp-recaptcha-integration
314
  msgid "Disable Submit Button"
315
  msgstr "Absendebutton deaktivieren"
316
 
317
+ #: inc/class-wp-recaptcha-options.php:212
318
  #@ wp-recaptcha-integration
319
  msgid "Disable Form Submit Button until no-captcha is entered."
320
  msgstr "Den Absendenbutton deaktivieren, bis das Captcha gelöst wurde."
321
 
322
+ #: wp-recaptcha-integration.php:399
323
+ #@ wp-recaptcha-integration
324
+ msgid "Please enable JavaScript to submit this form."
325
+ msgstr "Bitte aktiveren Sie JavaScript, um dieses Formular abschicken zu können."
326
+
327
+ #: inc/class-wp-recaptcha-options.php:320
328
+ #@ wp-recaptcha-integration
329
+ msgid "The user response was missing"
330
+ msgstr "Fehlende Antwort"
331
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -20,6 +20,7 @@ form 7 as well as a plugin API for your own integrations.
20
  - Secures login, signup and comments with a recaptcha.
21
  - Supports old as well as new reCaptcha.
22
  - Multisite Support
 
23
  - [Ninja Forms](http://ninjaforms.com/) integration
24
  - [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) integration
25
 
@@ -54,7 +55,7 @@ Then go to the [Google Recaptcha Site](http://www.google.com/recaptcha), sign up
54
 
55
  == Frequently asked questions ==
56
 
57
- = The plugin does not show up. What’s wrong? =
58
 
59
  On the plugin settings page check out if the option “Disable for known users” is activated (it is by default).
60
  Then log out (or open your page in a private browser window) and try again.
@@ -74,7 +75,7 @@ Use the GitHub Repo rather than the WordPress Plugin. Do as follows:
74
 
75
  3. type `git clone git@github.com:mcguffin/wp-recaptcha-integration.git`
76
 
77
- 4. If you want to update to the latest files (be careful, might be untested on Your WP-Version) type git pull´.
78
 
79
  Please note that the GitHub repository is more likely to contain unstable and untested code. Urgent fixes
80
  concerning stability or security (like crashes, vulnerabilities and alike) are more likely to be fixed in
@@ -102,6 +103,14 @@ I will migrate all the translation stuff there.
102
 
103
  == Changelog ==
104
 
 
 
 
 
 
 
 
 
105
  = 1.0.2 =
106
  - Feature: option to disable submit button, until the captcha is solved
107
  - Rearrange comment form (put captcha above submit button)
4
  Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
20
  - Secures login, signup and comments with a recaptcha.
21
  - Supports old as well as new reCaptcha.
22
  - Multisite Support
23
+ - BuddyPress Support
24
  - [Ninja Forms](http://ninjaforms.com/) integration
25
  - [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) integration
26
 
55
 
56
  == Frequently asked questions ==
57
 
58
+ = The captcha does not show up. What’s wrong? =
59
 
60
  On the plugin settings page check out if the option “Disable for known users” is activated (it is by default).
61
  Then log out (or open your page in a private browser window) and try again.
75
 
76
  3. type `git clone git@github.com:mcguffin/wp-recaptcha-integration.git`
77
 
78
+ 4. If you want to update to the latest files (be careful, might be untested with your WP-Version) type `git pull.
79
 
80
  Please note that the GitHub repository is more likely to contain unstable and untested code. Urgent fixes
81
  concerning stability or security (like crashes, vulnerabilities and alike) are more likely to be fixed in
103
 
104
  == Changelog ==
105
 
106
+ = 1.0.3 =
107
+ - Add BuddyPress support
108
+ - Action hook for wp_recaptcha_checked
109
+ - NoCaptcha: add non-js fallback.
110
+ - Code: pass `WP_Error` to `wp_die()` when comment captcha fails.
111
+ - Code: Rename filters recaptcha_required &gt; wp_recaptcha_required and recaptcha_disabled_html &gt; wp_recaptcha_disabled_html
112
+ - Happy New Year!
113
+
114
  = 1.0.2 =
115
  - Feature: option to disable submit button, until the captcha is solved
116
  - Rearrange comment form (put captcha above submit button)
screenshot-1.png CHANGED
Binary file
wp-recaptcha-integration.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP reCaptcha Integration
4
  Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
5
  Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old stle reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
6
- Version: 1.0.2
7
  Author: Jörn Lund
8
  Author URI: https://github.com/mcguffin/
9
  */
@@ -89,16 +89,10 @@ class WP_reCaptcha {
89
  }
90
 
91
  if ( $this->_has_api_key ) {
92
- add_action( 'wp_head' , array($this,'recaptcha_head') );
93
- add_action( 'wp_footer' , array($this,'recaptcha_foot') );
94
 
95
  add_action('init' , array(&$this,'init') );
96
  add_action('plugins_loaded' , array(&$this,'plugins_loaded') );
97
 
98
- if ( $this->get_option('recaptcha_enable_signup') || $this->get_option('recaptcha_enable_login') || $this->get_option('recaptcha_enable_lostpw') ) {
99
- add_action( 'login_head' , array(&$this,'recaptcha_head') );
100
- add_action( 'login_footer' , array(&$this,'recaptcha_foot') );
101
- }
102
  }
103
 
104
  register_activation_hook( __FILE__ , array( __CLASS__ , 'activate' ) );
@@ -138,25 +132,40 @@ class WP_reCaptcha {
138
 
139
  $require_recaptcha = $this->is_required();
140
 
141
- if ( $this->get_option('recaptcha_enable_comments') && $require_recaptcha ) {
142
- /*
143
- add_action('comment_form_after_fields',array($this,'print_recaptcha_html'),10,0);
144
- /*/
145
- add_filter('comment_form_defaults',array($this,'comment_form_defaults'),10);
146
- //*/
147
- add_action('pre_comment_on_post',array($this,'recaptcha_check_or_die'));
148
- }
149
- if ( $this->get_option('recaptcha_enable_signup') && $require_recaptcha ) {
150
- add_action('register_form',array($this,'print_recaptcha_html'),10,0);
151
- add_filter('registration_errors',array(&$this,'login_errors'));
152
- }
153
- if ( $this->get_option('recaptcha_enable_login') && $require_recaptcha ) {
154
- add_action('login_form',array($this,'print_recaptcha_html'),10,0);
155
- add_filter('wp_authenticate_user',array(&$this,'deny_login'),99 );
156
- }
157
- if ( $this->get_option('recaptcha_enable_lostpw') && $require_recaptcha ) {
158
- add_action('lostpassword_form' , array($this,'print_recaptcha_html'),10,0);
159
- add_filter('lostpassword_post' , array(&$this,'recaptcha_check_or_die'),99 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  }
161
  }
162
  /**
@@ -174,7 +183,7 @@ class WP_reCaptcha {
174
  */
175
  function is_required() {
176
  $is_required = ! ( $this->get_option('recaptcha_disable_for_known_users') && current_user_can( 'read' ) );
177
- return apply_filters( 'recaptcha_required' , $is_required );
178
  }
179
 
180
  /**
@@ -325,8 +334,10 @@ class WP_reCaptcha {
325
  * hooks into `pre_comment_on_post`, `lostpassword_post`
326
  */
327
  function recaptcha_check_or_die( ) {
328
- if ( ! $this->recaptcha_check() )
329
- wp_die( __("Sorry, the Captcha didn’t verify.",'wp-recaptcha-integration') );
 
 
330
  }
331
 
332
  /**
@@ -385,6 +396,7 @@ class WP_reCaptcha {
385
  $public_key = $this->get_option( 'recaptcha_publickey' );
386
  $theme = $this->get_option('recaptcha_theme');
387
  $return = sprintf( '<div id="g-recaptcha-%d" class="g-recaptcha" data-sitekey="%s" data-theme="%s"></div>',$this->_counter++,$public_key,$theme);
 
388
  return $return;
389
  }
390
 
@@ -435,14 +447,18 @@ class WP_reCaptcha {
435
  * @return bool false if check does not validate
436
  */
437
  function recaptcha_check( $flavor = '' ) {
 
438
  if ( empty( $flavor ) )
439
  $flavor = $this->get_option( 'recaptcha_flavor' );
440
  switch ( $flavor ) {
441
  case 'grecaptcha':
442
- return $this->grecaptcha_check();
 
443
  case 'recaptcha':
444
- return $this->old_recaptcha_check();
 
445
  }
 
446
  }
447
  /**
448
  * Check no captcha
@@ -458,6 +474,7 @@ class WP_reCaptcha {
458
  if ( ! is_wp_error($response) ) {
459
  $response_data = wp_remote_retrieve_body( $response );
460
  $this->_last_result = json_decode($response_data);
 
461
  return $this->_last_result->success;
462
  }
463
  }
@@ -478,6 +495,7 @@ class WP_reCaptcha {
478
  if ( ! $this->_last_result->is_valid )
479
  $this->last_error = $this->_last_result->error;
480
 
 
481
  return $this->_last_result->is_valid;
482
  }
483
 
3
  Plugin Name: WP reCaptcha Integration
4
  Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
5
  Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old stle reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
6
+ Version: 1.0.3
7
  Author: Jörn Lund
8
  Author URI: https://github.com/mcguffin/
9
  */
89
  }
90
 
91
  if ( $this->_has_api_key ) {
 
 
92
 
93
  add_action('init' , array(&$this,'init') );
94
  add_action('plugins_loaded' , array(&$this,'plugins_loaded') );
95
 
 
 
 
 
96
  }
97
 
98
  register_activation_hook( __FILE__ , array( __CLASS__ , 'activate' ) );
132
 
133
  $require_recaptcha = $this->is_required();
134
 
135
+ if ( $require_recaptcha ) {
136
+ add_action( 'wp_head' , array($this,'recaptcha_head') );
137
+ add_action( 'wp_footer' , array($this,'recaptcha_foot') );
138
+
139
+ if ( $this->get_option('recaptcha_enable_signup') || $this->get_option('recaptcha_enable_login') || $this->get_option('recaptcha_enable_lostpw') ) {
140
+ add_action( 'login_head' , array(&$this,'recaptcha_head') );
141
+ add_action( 'login_footer' , array(&$this,'recaptcha_foot') );
142
+ }
143
+ if ( $this->get_option('recaptcha_enable_comments') ) {
144
+ /*
145
+ add_action('comment_form_after_fields',array($this,'print_recaptcha_html'),10,0);
146
+ /*/
147
+ add_filter('comment_form_defaults',array($this,'comment_form_defaults'),10);
148
+ //*/
149
+ add_action('pre_comment_on_post',array($this,'recaptcha_check_or_die'));
150
+ }
151
+ if ( $this->get_option('recaptcha_enable_signup') ) {
152
+ // buddypress suuport.
153
+ if ( function_exists('buddypress') ) {
154
+ add_action('bp_account_details_fields',array($this,'print_recaptcha_html'),10,0);
155
+ add_filter('bp_signup_pre_validate',array(&$this,'recaptcha_check_or_die'),99 );
156
+ } else {
157
+ add_action('register_form',array($this,'print_recaptcha_html'),10,0);
158
+ add_filter('registration_errors',array(&$this,'login_errors'));
159
+ }
160
+ }
161
+ if ( $this->get_option('recaptcha_enable_login') ) {
162
+ add_action('login_form',array($this,'print_recaptcha_html'),10,0);
163
+ add_filter('wp_authenticate_user',array(&$this,'deny_login'),99 );
164
+ }
165
+ if ( $this->get_option('recaptcha_enable_lostpw') ) {
166
+ add_action('lostpassword_form' , array($this,'print_recaptcha_html'),10,0);
167
+ add_filter('lostpassword_post' , array(&$this,'recaptcha_check_or_die'),99 );
168
+ }
169
  }
170
  }
171
  /**
183
  */
184
  function is_required() {
185
  $is_required = ! ( $this->get_option('recaptcha_disable_for_known_users') && current_user_can( 'read' ) );
186
+ return apply_filters( 'wp_recaptcha_required' , $is_required );
187
  }
188
 
189
  /**
334
  * hooks into `pre_comment_on_post`, `lostpassword_post`
335
  */
336
  function recaptcha_check_or_die( ) {
337
+ if ( ! $this->recaptcha_check() ) {
338
+ $err = new WP_Error('comment_err', __("Sorry, the Captcha didn’t verify.",'wp-recaptcha-integration') );
339
+ wp_die( $err );
340
+ }
341
  }
342
 
343
  /**
396
  $public_key = $this->get_option( 'recaptcha_publickey' );
397
  $theme = $this->get_option('recaptcha_theme');
398
  $return = sprintf( '<div id="g-recaptcha-%d" class="g-recaptcha" data-sitekey="%s" data-theme="%s"></div>',$this->_counter++,$public_key,$theme);
399
+ $return .= '<noscript>'.__('Please enable JavaScript to submit this form.','wp-recaptcha-integration').'</noscript>';
400
  return $return;
401
  }
402
 
447
  * @return bool false if check does not validate
448
  */
449
  function recaptcha_check( $flavor = '' ) {
450
+ $result = false;
451
  if ( empty( $flavor ) )
452
  $flavor = $this->get_option( 'recaptcha_flavor' );
453
  switch ( $flavor ) {
454
  case 'grecaptcha':
455
+ $result = $this->grecaptcha_check();
456
+ break;
457
  case 'recaptcha':
458
+ $result = $this->old_recaptcha_check();
459
+ break;
460
  }
461
+ return $result;
462
  }
463
  /**
464
  * Check no captcha
474
  if ( ! is_wp_error($response) ) {
475
  $response_data = wp_remote_retrieve_body( $response );
476
  $this->_last_result = json_decode($response_data);
477
+ do_action( 'wp_recaptcha_checked' , $this->_last_result->success );
478
  return $this->_last_result->success;
479
  }
480
  }
495
  if ( ! $this->_last_result->is_valid )
496
  $this->last_error = $this->_last_result->error;
497
 
498
+ do_action( 'wp_recaptcha_checked' , $this->_last_result->is_valid );
499
  return $this->_last_result->is_valid;
500
  }
501