Simple Google reCAPTCHA - Version 1.1

Version Description

  • Text correction
  • Fixed post comment when user is logged in
  • Better screenshots
Download this release

Release Info

Developer Minor
Plugin Icon 128x128 Simple Google reCAPTCHA
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

languages/simple-google-recaptcha-cs_CZ.mo CHANGED
Binary file
languages/simple-google-recaptcha-cs_CZ.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Simple Google reCAPTCHA\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Thu Jul 28 2016 03:31:39 GMT+0200\n"
6
- "PO-Revision-Date: Thu Jul 28 2016 03:34:24 GMT+0200\n"
7
  "Last-Translator: Minor <blog@novami.cz>\n"
8
  "Language-Team: \n"
9
  "Language: Czech\n"
@@ -23,14 +23,26 @@ msgstr ""
23
  "X-Generator: Loco - https://localise.biz/\n"
24
  "X-Loco-Target-Locale: cs_CZ"
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  #. Name of the plugin
27
  msgid "Simple Google reCAPTCHA"
28
  msgstr "Simple Google reCAPTCHA"
29
 
30
- #. Description of the plugin
31
- msgid "Simply protect your Wordpress from spam, thanks to Google reCAPTCHA!"
32
- msgstr "Jednoduše ochraňte svůj Wordpress před spamem, díky Google reCAPTCHA!"
33
-
34
  #. Author of the plugin
35
  msgid "Michal Nov&aacute;k"
36
  msgstr "Michal Nov&aacute;k"
@@ -68,11 +80,3 @@ msgstr ""
68
  #: ../simple-google-recaptcha.php:40
69
  msgid "<p>Enter your keys below:</p>"
70
  msgstr "<p>Níže vložte získané klíče:</p>"
71
-
72
- #: ../simple-google-recaptcha.php:83
73
- msgid "<p><strong>ERROR</strong>: You are a bot.</p>"
74
- msgstr "<p><strong>CHYBA</strong>: Nezaškrtli jste, že nejste robot.</p>"
75
-
76
- #: ../simple-google-recaptcha.php:87
77
- msgid "<p><strong>ERROR</strong>: You are a bot. If not then enable JavaScript.</p>"
78
- msgstr "<p><strong>CHYBA</strong>: Aktivujte si JavaScript, prosím.</p>"
3
  "Project-Id-Version: Simple Google reCAPTCHA\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Thu Jul 28 2016 03:31:39 GMT+0200\n"
6
+ "PO-Revision-Date: Tue Aug 02 2016 19:23:37 GMT+0200\n"
7
  "Last-Translator: Minor <blog@novami.cz>\n"
8
  "Language-Team: \n"
9
  "Language: Czech\n"
23
  "X-Generator: Loco - https://localise.biz/\n"
24
  "X-Loco-Target-Locale: cs_CZ"
25
 
26
+ #. Description of the plugin
27
+ msgid "Simply protect your WordPress from spam, thanks to Google reCAPTCHA!"
28
+ msgstr "Jednoduše ochraňte svůj WordPress před spamem, díky Google reCAPTCHA!"
29
+
30
+ #: ../simple-google-recaptcha.php:85
31
+ msgid "<p><strong>ERROR</strong>: Google reCAPTCHA verification failed.</p>"
32
+ msgstr "<p><strong>CHYBA</strong>: Selhalo ověření Google reCAPTCHA.</p>"
33
+
34
+ #: ../simple-google-recaptcha.php:89
35
+ msgid ""
36
+ "<p><strong>ERROR</strong>: Google reCAPTCHA verification failed. Do you have "
37
+ "JavaScript enabled?</p>"
38
+ msgstr ""
39
+ "<p><strong>CHYBA</strong>: Selhalo ověření Google reCAPTCHA. Máte povolený "
40
+ "JavaScript?</p>"
41
+
42
  #. Name of the plugin
43
  msgid "Simple Google reCAPTCHA"
44
  msgstr "Simple Google reCAPTCHA"
45
 
 
 
 
 
46
  #. Author of the plugin
47
  msgid "Michal Nov&aacute;k"
48
  msgstr "Michal Nov&aacute;k"
80
  #: ../simple-google-recaptcha.php:40
81
  msgid "<p>Enter your keys below:</p>"
82
  msgstr "<p>Níže vložte získané klíče:</p>"
 
 
 
 
 
 
 
 
languages/simple-google-recaptcha.pot CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Simple Google reCAPTCHA\n"
6
  "Report-Msgid-Bugs-To: \n"
7
  "POT-Creation-Date: Thu Jul 28 2016 03:31:39 GMT+0200\n"
8
- "POT-Revision-Date: Thu Jul 28 2016 03:31:44 GMT+0200\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
@@ -29,7 +29,7 @@ msgid "Simple Google reCAPTCHA"
29
  msgstr ""
30
 
31
  #. Description of the plugin
32
- msgid "Simply protect your Wordpress from spam, thanks to Google reCAPTCHA!"
33
  msgstr ""
34
 
35
  #. Author of the plugin
@@ -67,10 +67,12 @@ msgstr ""
67
  msgid "<p>Enter your keys below:</p>"
68
  msgstr ""
69
 
70
- #: ../simple-google-recaptcha.php:83
71
- msgid "<p><strong>ERROR</strong>: You are a bot.</p>"
72
  msgstr ""
73
 
74
- #: ../simple-google-recaptcha.php:87
75
- msgid "<p><strong>ERROR</strong>: You are a bot. If not then enable JavaScript.</p>"
 
 
76
  msgstr ""
5
  "Project-Id-Version: Simple Google reCAPTCHA\n"
6
  "Report-Msgid-Bugs-To: \n"
7
  "POT-Creation-Date: Thu Jul 28 2016 03:31:39 GMT+0200\n"
8
+ "POT-Revision-Date: Tue Aug 02 2016 19:22:00 GMT+0200\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
29
  msgstr ""
30
 
31
  #. Description of the plugin
32
+ msgid "Simply protect your WordPress from spam, thanks to Google reCAPTCHA!"
33
  msgstr ""
34
 
35
  #. Author of the plugin
67
  msgid "<p>Enter your keys below:</p>"
68
  msgstr ""
69
 
70
+ #: ../simple-google-recaptcha.php:85
71
+ msgid "<p><strong>ERROR</strong>: Google reCAPTCHA verification failed.</p>"
72
  msgstr ""
73
 
74
+ #: ../simple-google-recaptcha.php:89
75
+ msgid ""
76
+ "<p><strong>ERROR</strong>: Google reCAPTCHA verification failed. Do you have "
77
+ "JavaScript enabled?</p>"
78
  msgstr ""
readme.txt CHANGED
@@ -1,19 +1,19 @@
1
  === Simple Google reCAPTCHA ===
2
 
3
  Contributors: Minor
4
- Tags: recaptcha, spam protect, block spam
5
  Requires at least: 4.3.0
6
  Tested up to: 4.5.3
7
  Stable tag: 1.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- Simply protect your Wordpress from spam, thanks to Google reCAPTCHA!
12
 
13
 
14
  == Description ==
15
 
16
- Are you bored from removing spam comments and users from your Wordpress? Simple Google reCAPTCHA will protect you and save your time (and server load)! It's the best solution today.
17
 
18
  What is protected with Google reCAPTCHA?
19
 
@@ -26,15 +26,17 @@ What is protected with Google reCAPTCHA?
26
  == Installation ==
27
 
28
  1. Upload the plugin files to the "/wp-content/plugins/simple-google-recaptcha" directory, or install the plugin through the WordPress plugins screen directly.
 
29
  2. Activate the plugin through the "Plugins" screen in WordPress
30
- 3. Use the Settings->reCAPTCHA screen to configure the plugin
 
31
 
32
 
33
  == Frequently Asked Questions ==
34
 
35
- = No more qustions yet =
36
 
37
- No more answers yet.
38
 
39
 
40
  == Screenshots ==
@@ -48,8 +50,10 @@ No more answers yet.
48
 
49
  == Changelog ==
50
 
51
- = 1.0 =
52
- * Plugin created!
 
 
53
 
54
-
55
- Here's a link to author's page https://www.novami.cz.
1
  === Simple Google reCAPTCHA ===
2
 
3
  Contributors: Minor
4
+ Tags: recaptcha, spam protect, block spam, google captcha
5
  Requires at least: 4.3.0
6
  Tested up to: 4.5.3
7
  Stable tag: 1.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Simply protect your WordPress from spam, thanks to Google reCAPTCHA!
12
 
13
 
14
  == Description ==
15
 
16
+ Are you bored from removing spam comments and users from your WordPress? Simple Google reCAPTCHA will protect your WordPress and save your time! It's the best solution today.
17
 
18
  What is protected with Google reCAPTCHA?
19
 
26
  == Installation ==
27
 
28
  1. Upload the plugin files to the "/wp-content/plugins/simple-google-recaptcha" directory, or install the plugin through the WordPress plugins screen directly.
29
+
30
  2. Activate the plugin through the "Plugins" screen in WordPress
31
+
32
+ 3. Use the Settings => reCAPTCHA screen to configure the plugin
33
 
34
 
35
  == Frequently Asked Questions ==
36
 
37
+ = No questions yet =
38
 
39
+ No answers yet.
40
 
41
 
42
  == Screenshots ==
50
 
51
  == Changelog ==
52
 
53
+ = 1.1 =
54
+ * Text correction
55
+ * Fixed post comment when user is logged in
56
+ * Better screenshots
57
 
58
+ = 1.0 =
59
+ * Plugin created!
screenshot-1.jpg CHANGED
Binary file
screenshot-2.jpg CHANGED
Binary file
screenshot-3.jpg CHANGED
Binary file
screenshot-4.jpg CHANGED
Binary file
screenshot-5.jpg CHANGED
Binary file
simple-google-recaptcha.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /*
3
  * Plugin Name: Simple Google reCAPTCHA
4
- * Description: Simply protect your Wordpress from spam, thanks to Google reCAPTCHA!
5
- * Version: 1.0
6
  * Author: Michal Nov&aacute;k
7
  * Author URI: https://www.novami.cz
8
  * License: GPL3
@@ -67,6 +67,7 @@ function display_simple_google_recaptcha() {
67
  echo "<div class=\"g-recaptcha\" data-sitekey=\"".get_option("simple_google_recaptcha_site_key")."\"></div>";
68
  }
69
 
 
70
  add_action("comment_form_after_fields", "display_simple_google_recaptcha");
71
  add_action("login_form", "display_simple_google_recaptcha" );
72
  add_action("register_form", "display_simple_google_recaptcha");
@@ -81,11 +82,11 @@ function verify_simple_google_recaptcha($input) {
81
  if (true == $response["success"]) {
82
  return $input;
83
  } else {
84
- wp_die(__("<p><strong>ERROR</strong>: You are a bot.</p>", "simple-google-recaptcha")."</p>\n\n<p><a href=".wp_get_referer().">&laquo; Zpět</a>");
85
  return null;
86
  }
87
  } else {
88
- wp_die(__("<p><strong>ERROR</strong>: You are a bot. If not then enable JavaScript.</p>", "simple-google-recaptcha")."</p>\n\n<p><a href=".wp_get_referer().">&laquo; Zpět</a>");
89
  return null;
90
  }
91
  }
1
  <?php
2
  /*
3
  * Plugin Name: Simple Google reCAPTCHA
4
+ * Description: Simply protect your WordPress from spam, thanks to Google reCAPTCHA!
5
+ * Version: 1.1
6
  * Author: Michal Nov&aacute;k
7
  * Author URI: https://www.novami.cz
8
  * License: GPL3
67
  echo "<div class=\"g-recaptcha\" data-sitekey=\"".get_option("simple_google_recaptcha_site_key")."\"></div>";
68
  }
69
 
70
+ add_action("comment_form_logged_in_after", "display_simple_google_recaptcha");
71
  add_action("comment_form_after_fields", "display_simple_google_recaptcha");
72
  add_action("login_form", "display_simple_google_recaptcha" );
73
  add_action("register_form", "display_simple_google_recaptcha");
82
  if (true == $response["success"]) {
83
  return $input;
84
  } else {
85
+ wp_die(__("<p><strong>ERROR</strong>: Google reCAPTCHA verification failed.</p>", "simple-google-recaptcha")."</p>\n\n<p><a href=".wp_get_referer().">&laquo; Zpět</a>");
86
  return null;
87
  }
88
  } else {
89
+ wp_die(__("<p><strong>ERROR</strong>: Google reCAPTCHA verification failed. Do you have JavaScript enabled?</p>", "simple-google-recaptcha")."</p>\n\n<p><a href=".wp_get_referer().">&laquo; Zpět</a>");
90
  return null;
91
  }
92
  }