Google Captcha (reCAPTCHA) by BestWebSoft - Version 1.35

Version Description

  • 08.02.2018 =
  • Update : The Czech language file has been updated.
  • Bugfix : Google Captcha responsive styles have been fixed.
  • Bugfix : Potential bruteforce vulnerability has been fixed.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Google Captcha (reCAPTCHA) by BestWebSoft
Version 1.35
Comparing to
See all releases

Code changes from version 1.34 to 1.35

google-captcha.php CHANGED
@@ -6,7 +6,7 @@ Description: Protect WordPress website forms from spam entries with Google Captc
6
  Author: BestWebSoft
7
  Text Domain: google-captcha
8
  Domain Path: /languages
9
- Version: 1.34
10
  Author URI: https://bestwebsoft.com/
11
  License: GPLv3 or later
12
  */
@@ -991,7 +991,7 @@ if ( ! function_exists( 'gglcptch_test_keys' ) ) {
991
  if ( ! function_exists( 'gglcptch_test_keys_verification' ) ) {
992
  function gglcptch_test_keys_verification() {
993
  if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'] , $_REQUEST['action'] ) ) {
994
- $result = gglcptch_check( true );
995
 
996
  if ( ! $result['response'] ) {
997
  if ( isset( $result['reason'] ) ) {
6
  Author: BestWebSoft
7
  Text Domain: google-captcha
8
  Domain Path: /languages
9
+ Version: 1.35
10
  Author URI: https://bestwebsoft.com/
11
  License: GPLv3 or later
12
  */
991
  if ( ! function_exists( 'gglcptch_test_keys_verification' ) ) {
992
  function gglcptch_test_keys_verification() {
993
  if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'] , $_REQUEST['action'] ) ) {
994
+ $result = gglcptch_check( 'general', true );
995
 
996
  if ( ! $result['response'] ) {
997
  if ( isset( $result['reason'] ) ) {
includes/forms.php CHANGED
@@ -271,7 +271,8 @@ if ( ! function_exists( 'gglcptch_login_check' ) ) {
271
  if ( $gglcptch_check['reason'] == 'VERIFICATION_FAILED' ) {
272
  wp_clear_auth_cookie();
273
  }
274
- $errors = new WP_Error( $user->get_error_code(), __( 'Authentication failed.', 'google-captcha' ) );
 
275
  $gglcptch_errors = $gglcptch_check['errors']->errors;
276
  foreach ( $gglcptch_errors as $code => $messages ) {
277
  foreach ( $messages as $message ) {
271
  if ( $gglcptch_check['reason'] == 'VERIFICATION_FAILED' ) {
272
  wp_clear_auth_cookie();
273
  }
274
+ $error_code = ( is_wp_error( $user ) ) ? $user->get_error_code() : 'incorrect_password';
275
+ $errors = new WP_Error( $error_code, __( 'Authentication failed.', 'google-captcha' ) );
276
  $gglcptch_errors = $gglcptch_check['errors']->errors;
277
  foreach ( $gglcptch_errors as $code => $messages ) {
278
  foreach ( $messages as $message ) {
js/script.js CHANGED
@@ -161,7 +161,7 @@
161
  }
162
 
163
  if ( 'v2' == gglcptch_version ) {
164
- if ( $( '#' + container ).parent().width() <= 304 ) {
165
  var size = 'compact';
166
  } else {
167
  var size = 'normal';
161
  }
162
 
163
  if ( 'v2' == gglcptch_version ) {
164
+ if ( $( '#' + container ).parent().width() <= 300 ) {
165
  var size = 'compact';
166
  } else {
167
  var size = 'normal';
languages/google-captcha-cs_CZ.mo CHANGED
Binary file
languages/google-captcha-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Google Сaptcha\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2018-02-06 09:49+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Mik013\n"
8
  "Language-Team: Mik013\n"
@@ -41,7 +41,7 @@ msgstr "Aktualizovat na Pro"
41
 
42
  #: google-captcha.php:233
43
  msgid "Please wait until Google reCAPTCHA is loaded."
44
- msgstr "Prosím počkejte, než se Google reCAPTCHA načte."
45
 
46
  #: google-captcha.php:234
47
  msgid ""
@@ -75,7 +75,7 @@ msgstr "a zadejte je na"
75
  msgid "plugin setting page"
76
  msgstr "stránce nastavení pluginu"
77
 
78
- #: google-captcha.php:796 includes/forms.php:361
79
  msgid "Error"
80
  msgstr "Chyba"
81
 
@@ -113,15 +113,15 @@ msgid ""
113
  "all unnecessary reCAPTCHA fields to make it work properly."
114
  msgstr ""
115
  "V aktuálním formuláři byla zjištěna více než jedna reCAPTCHA. Pro správnou "
116
- "funkcionalitu, prosím odstraňte všechny nepotřebné reCAPTCHA pole."
117
 
118
  #: google-captcha.php:975
119
  msgid "Please submit \"Test verification\""
120
- msgstr "Odešlete \"Test ověření\""
121
 
122
  #: google-captcha.php:977
123
  msgid "Please complete the captcha and submit \"Test verification\""
124
- msgstr "Prosím, doplňte captcha a odešlete \"Test ověření\""
125
 
126
  #: google-captcha.php:984
127
  msgid "Test verification"
@@ -133,7 +133,9 @@ msgstr "Ověření je úspěšně dokončeno."
133
 
134
  #: google-captcha.php:1040
135
  msgid "FAQ"
136
- msgstr "Často kladené otázky (FAQ)"
 
 
137
 
138
  #: google-captcha.php:1041
139
  msgid "Support"
@@ -202,7 +204,6 @@ msgid "Get the API Keys"
202
  msgstr "Získat API klíče"
203
 
204
  #: includes/class-gglcptch-settings-tabs.php:171
205
- #, fuzzy
206
  msgid "Test reCAPTCHA"
207
  msgstr "Vyzkoušet reCAPTCHA"
208
 
@@ -220,9 +221,8 @@ msgid "Close"
220
  msgstr "Zavřít"
221
 
222
  #: includes/class-gglcptch-settings-tabs.php:235
223
- #, fuzzy
224
  msgid "Hide reCAPTCHA for"
225
- msgstr "Povolit reCAPTCHA pro"
226
 
227
  #: includes/class-gglcptch-settings-tabs.php:253
228
  msgid "reCAPTCHA Version"
@@ -238,19 +238,21 @@ msgid "Whitelist Notification"
238
  msgstr "Upozornění na seznam povolených"
239
 
240
  #: includes/class-gglcptch-settings-tabs.php:304
241
- #, fuzzy
242
  msgid "This message will be displayed instead of the reCAPTCHA."
243
  msgstr "Tato zpráva se zobrazí namísto reCAPTCHA."
244
 
245
  #: includes/class-gglcptch-settings-tabs.php:308
246
  msgid "Disabled Submit Button"
247
- msgstr ""
248
 
249
  #: includes/class-gglcptch-settings-tabs.php:312
250
  msgid ""
251
  "Enable to keep submit button disabled until reCAPTCHA is loaded (do not use "
252
  "this option if you see \"Failed to load Google reCAPTCHA\" message)."
253
  msgstr ""
 
 
 
254
 
255
  #: includes/class-gglcptch-settings-tabs.php:327
256
  msgid ""
@@ -261,13 +263,12 @@ msgstr ""
261
  "reCAPTCHA verze 1."
262
 
263
  #: includes/class-gglcptch-settings-tabs.php:330
264
- #, fuzzy
265
  msgid ""
266
  "reCAPTCHA version was changed. Please submit \"Test reCAPTCHA\" and "
267
  "regenerate Site and Secret keys if necessary."
268
  msgstr ""
269
- "ReCAPTCHA verze byla změněna. Klikněte na \"Vyzkoušet reCAPTCHA\" a znovu "
270
- "vygenerujte tajné a webové klíče, je-li to nezbytné."
271
 
272
  #: includes/class-gglcptch-settings-tabs.php:343
273
  msgid "Google Captcha Shortcode"
@@ -306,11 +307,11 @@ msgstr "Externí pluginy"
306
 
307
  #: includes/forms.php:55
308
  msgid "Custom Forms"
309
- msgstr ""
310
 
311
  #: includes/forms.php:76
312
  msgid "Google Captcha Plugin"
313
- msgstr ""
314
 
315
  #: includes/forms.php:116 includes/forms.php:141
316
  msgid "Activate"
@@ -320,11 +321,11 @@ msgstr "Aktivovat"
320
  msgid "Install Now"
321
  msgstr "Instalovat nyní"
322
 
323
- #: includes/forms.php:274
324
  msgid "Authentication failed."
325
- msgstr ""
326
 
327
- #: includes/forms.php:363
328
  msgid "Click the BACK button on your browser and try again."
329
  msgstr "Klikněte ve vašem prohlížeči na tlačítko ZPĚT a zkuste to znovu."
330
 
@@ -362,62 +363,59 @@ msgstr "tabelátor, nový řádek nebo návratu vozíku."
362
 
363
  #: includes/pro_banners.php:53
364
  msgid "Jetpack Contact Form"
365
- msgstr ""
366
 
367
  #: includes/pro_banners.php:56
368
  msgid "bbPress New Topic form"
369
- msgstr ""
370
 
371
  #: includes/pro_banners.php:57
372
  msgid "bbPress Reply form"
373
- msgstr ""
374
 
375
  #: includes/pro_banners.php:58
376
- #, fuzzy
377
  msgid "BuddyPress Registration form"
378
- msgstr "Buddypress Registrační formulář"
379
 
380
  #: includes/pro_banners.php:59
381
- #, fuzzy
382
  msgid "BuddyPress Comments form"
383
- msgstr "Buddypress Formulář pro odeslání komentáře"
384
 
385
  #: includes/pro_banners.php:60
386
  msgid "BuddyPress Add New Group form"
387
- msgstr ""
388
 
389
  #: includes/pro_banners.php:61
390
- #, fuzzy
391
  msgid "WooCommerce Login form"
392
  msgstr "WooCommerce přihlašovací formulář"
393
 
394
  #: includes/pro_banners.php:62
395
  msgid "WooCommerce Registration form"
396
- msgstr ""
397
 
398
  #: includes/pro_banners.php:63
399
  msgid "WooCommerce Reset password form"
400
- msgstr ""
401
 
402
  #: includes/pro_banners.php:64
403
  msgid "WooCommerce Checkout form"
404
- msgstr ""
405
 
406
  #: includes/pro_banners.php:65
407
  msgid "wpForo Login form"
408
- msgstr ""
409
 
410
  #: includes/pro_banners.php:66
411
  msgid "wpForo Registration form"
412
- msgstr ""
413
 
414
  #: includes/pro_banners.php:67
415
  msgid "wpForo New Topic form"
416
- msgstr ""
417
 
418
  #: includes/pro_banners.php:68
419
  msgid "wpForo Reply form"
420
- msgstr ""
421
 
422
  #: includes/pro_banners.php:156
423
  msgid "Size"
2
  msgstr ""
3
  "Project-Id-Version: Google Сaptcha\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-02-08 13:56+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Mik013\n"
8
  "Language-Team: Mik013\n"
41
 
42
  #: google-captcha.php:233
43
  msgid "Please wait until Google reCAPTCHA is loaded."
44
+ msgstr "Počkejte, než se Google reCAPTCHA načte."
45
 
46
  #: google-captcha.php:234
47
  msgid ""
75
  msgid "plugin setting page"
76
  msgstr "stránce nastavení pluginu"
77
 
78
+ #: google-captcha.php:796 includes/forms.php:362
79
  msgid "Error"
80
  msgstr "Chyba"
81
 
113
  "all unnecessary reCAPTCHA fields to make it work properly."
114
  msgstr ""
115
  "V aktuálním formuláři byla zjištěna více než jedna reCAPTCHA. Pro správnou "
116
+ "funkcionalitu, odstraňte všechny nepotřebné reCAPTCHA pole."
117
 
118
  #: google-captcha.php:975
119
  msgid "Please submit \"Test verification\""
120
+ msgstr "Odešlete &#8222;Test ověření&#8220;"
121
 
122
  #: google-captcha.php:977
123
  msgid "Please complete the captcha and submit \"Test verification\""
124
+ msgstr "Doplňte captcha a odešlete &#8222;Test ověření&#8220;"
125
 
126
  #: google-captcha.php:984
127
  msgid "Test verification"
133
 
134
  #: google-captcha.php:1040
135
  msgid "FAQ"
136
+ msgstr ""
137
+ "Časté dotazy <acronym title=\\\"Frequently asked questions\\\">(FAQ)</"
138
+ "acronym>"
139
 
140
  #: google-captcha.php:1041
141
  msgid "Support"
204
  msgstr "Získat API klíče"
205
 
206
  #: includes/class-gglcptch-settings-tabs.php:171
 
207
  msgid "Test reCAPTCHA"
208
  msgstr "Vyzkoušet reCAPTCHA"
209
 
221
  msgstr "Zavřít"
222
 
223
  #: includes/class-gglcptch-settings-tabs.php:235
 
224
  msgid "Hide reCAPTCHA for"
225
+ msgstr "Skrýt reCAPTCHA pro"
226
 
227
  #: includes/class-gglcptch-settings-tabs.php:253
228
  msgid "reCAPTCHA Version"
238
  msgstr "Upozornění na seznam povolených"
239
 
240
  #: includes/class-gglcptch-settings-tabs.php:304
 
241
  msgid "This message will be displayed instead of the reCAPTCHA."
242
  msgstr "Tato zpráva se zobrazí namísto reCAPTCHA."
243
 
244
  #: includes/class-gglcptch-settings-tabs.php:308
245
  msgid "Disabled Submit Button"
246
+ msgstr "Neaktivní tlačitko odeslat"
247
 
248
  #: includes/class-gglcptch-settings-tabs.php:312
249
  msgid ""
250
  "Enable to keep submit button disabled until reCAPTCHA is loaded (do not use "
251
  "this option if you see \"Failed to load Google reCAPTCHA\" message)."
252
  msgstr ""
253
+ "Nastaví tlačítko odeslat neaktivní, dokud nebude reCAPTCHA načtena (tuto "
254
+ "možnost nepoužívejte, pokud se zobrazuje zpráva &#8222;Nepodařilo se načíst "
255
+ "Google reCAPTCHA&#8220;)."
256
 
257
  #: includes/class-gglcptch-settings-tabs.php:327
258
  msgid ""
263
  "reCAPTCHA verze 1."
264
 
265
  #: includes/class-gglcptch-settings-tabs.php:330
 
266
  msgid ""
267
  "reCAPTCHA version was changed. Please submit \"Test reCAPTCHA\" and "
268
  "regenerate Site and Secret keys if necessary."
269
  msgstr ""
270
+ "Byla změněna verze reCAPTCHA. Klikněte na &#8222;Vyzkoušet reCAPTCHA&#8220; "
271
+ "a znovu vygenerujte tajné a webové klíče, je-li to nezbytné."
272
 
273
  #: includes/class-gglcptch-settings-tabs.php:343
274
  msgid "Google Captcha Shortcode"
307
 
308
  #: includes/forms.php:55
309
  msgid "Custom Forms"
310
+ msgstr "Vlastní formuláře"
311
 
312
  #: includes/forms.php:76
313
  msgid "Google Captcha Plugin"
314
+ msgstr "Plugin Google Captcha"
315
 
316
  #: includes/forms.php:116 includes/forms.php:141
317
  msgid "Activate"
321
  msgid "Install Now"
322
  msgstr "Instalovat nyní"
323
 
324
+ #: includes/forms.php:275
325
  msgid "Authentication failed."
326
+ msgstr "Ověření selhalo."
327
 
328
+ #: includes/forms.php:364
329
  msgid "Click the BACK button on your browser and try again."
330
  msgstr "Klikněte ve vašem prohlížeči na tlačítko ZPĚT a zkuste to znovu."
331
 
363
 
364
  #: includes/pro_banners.php:53
365
  msgid "Jetpack Contact Form"
366
+ msgstr "Jetpack kontaktní formulář"
367
 
368
  #: includes/pro_banners.php:56
369
  msgid "bbPress New Topic form"
370
+ msgstr "bbPress formulář nového tématu"
371
 
372
  #: includes/pro_banners.php:57
373
  msgid "bbPress Reply form"
374
+ msgstr "bbPress odpovědní formulář"
375
 
376
  #: includes/pro_banners.php:58
 
377
  msgid "BuddyPress Registration form"
378
+ msgstr "Buddypress registrační formulář"
379
 
380
  #: includes/pro_banners.php:59
 
381
  msgid "BuddyPress Comments form"
382
+ msgstr "BuddyPress formulář komentářů"
383
 
384
  #: includes/pro_banners.php:60
385
  msgid "BuddyPress Add New Group form"
386
+ msgstr "Buddypress formulář Přidat novou skupinu"
387
 
388
  #: includes/pro_banners.php:61
 
389
  msgid "WooCommerce Login form"
390
  msgstr "WooCommerce přihlašovací formulář"
391
 
392
  #: includes/pro_banners.php:62
393
  msgid "WooCommerce Registration form"
394
+ msgstr "WooCommerce registrační formulář"
395
 
396
  #: includes/pro_banners.php:63
397
  msgid "WooCommerce Reset password form"
398
+ msgstr "WooCommerce formulář pro resetování hesla"
399
 
400
  #: includes/pro_banners.php:64
401
  msgid "WooCommerce Checkout form"
402
+ msgstr "WooCommerce formulář platby"
403
 
404
  #: includes/pro_banners.php:65
405
  msgid "wpForo Login form"
406
+ msgstr "wpForo přihlašovací formulář"
407
 
408
  #: includes/pro_banners.php:66
409
  msgid "wpForo Registration form"
410
+ msgstr "wpForo registrační formulář"
411
 
412
  #: includes/pro_banners.php:67
413
  msgid "wpForo New Topic form"
414
+ msgstr "wpForo formulář nového tématu"
415
 
416
  #: includes/pro_banners.php:68
417
  msgid "wpForo Reply form"
418
+ msgstr "wpForo odpovědní formulář"
419
 
420
  #: includes/pro_banners.php:156
421
  msgid "Size"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: bestwebsoft
3
  Donate link: https://bestwebsoft.com/donate/
4
  Tags: anti-spam security, antispam, recaptcha, captcha, captha, Invisible reCaptcha, Invisible captcha, Invisibl reCaptcha, comment, cpatcha, google catcha, Invisible re captcha
5
  Requires at least: 3.9
6
- Tested up to: 4.9.3
7
- Stable tag: 1.34
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -62,7 +62,7 @@ http://www.youtube.com/watch?v=qwHsW3IJ7gQ
62
  > * [Multilanguage](https://bestwebsoft.com/products/wordpress/plugins/multilanguage/?k=e48e145002e4b2472e568a81d171b888)
63
  > * Jetpack contact form
64
  > * Fast Secure Contact Form
65
- > * MailChimp for WordPress [NEW]
66
  > * Compatible with WooCommerce:
67
  > * Login form
68
  > * Register form
@@ -259,6 +259,11 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
259
 
260
  == Changelog ==
261
 
 
 
 
 
 
262
  = V1.34 - 06.02.2018 =
263
  * NEW : The compatibility with Wordfence option "Immediately block the IP of users who try to sign in as these usernames" has been added.
264
  * Update : reCAPTCHA output functionality in forms has been optimized.
@@ -415,6 +420,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
415
 
416
  == Upgrade Notice ==
417
 
 
 
 
 
418
  = V1.34 =
419
  * The compatibility with new WordPress version updated.
420
  * Functionality expanded.
3
  Donate link: https://bestwebsoft.com/donate/
4
  Tags: anti-spam security, antispam, recaptcha, captcha, captha, Invisible reCaptcha, Invisible captcha, Invisibl reCaptcha, comment, cpatcha, google catcha, Invisible re captcha
5
  Requires at least: 3.9
6
+ Tested up to: 4.9.4
7
+ Stable tag: 1.35
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
62
  > * [Multilanguage](https://bestwebsoft.com/products/wordpress/plugins/multilanguage/?k=e48e145002e4b2472e568a81d171b888)
63
  > * Jetpack contact form
64
  > * Fast Secure Contact Form
65
+ > * MailChimp for WordPress
66
  > * Compatible with WooCommerce:
67
  > * Login form
68
  > * Register form
259
 
260
  == Changelog ==
261
 
262
+ = V1.35 - 08.02.2018 =
263
+ * Update : The Czech language file has been updated.
264
+ * Bugfix : Google Captcha responsive styles have been fixed.
265
+ * Bugfix : Potential bruteforce vulnerability has been fixed.
266
+
267
  = V1.34 - 06.02.2018 =
268
  * NEW : The compatibility with Wordfence option "Immediately block the IP of users who try to sign in as these usernames" has been added.
269
  * Update : reCAPTCHA output functionality in forms has been optimized.
420
 
421
  == Upgrade Notice ==
422
 
423
+ = V1.35 =
424
+ * Languages updated.
425
+ * Bugs fixed.
426
+
427
  = V1.34 =
428
  * The compatibility with new WordPress version updated.
429
  * Functionality expanded.