Changeset 1040923
- Timestamp:
- 12/09/2014 02:11:37 AM (11 years ago)
- Location:
- recaptcha-wp/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
recaptcha-wp.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recaptcha-wp/trunk/readme.txt
r1040897 r1040923 28 28 == Frequently Asked Questions == 29 29 30 Q: Where can you findsettings of thie plugin?30 Q: Where can I find the settings of thie plugin? 31 31 32 32 A: It's under the Settings -> Discussion menu … … 34 34 == Screenshots == 35 35 36 1. '/assets/screenshot1.png'36 1. /assets/screenshot1.png 37 37 38 38 == Changelog == 39 40 = 0.23= 41 +Added non-member only recaptcha. 42 39 43 40 44 = 0.2 = -
recaptcha-wp/trunk/recaptcha-wp.php
r1040888 r1040923 4 4 Description: A wordpress Plugin enable google reCAPTCHA in your wordpress Site. 5 5 Plugin URI: http://www.heavyskymobile.com 6 Version: 0.2 6 Version: 0.23 7 7 Author: rozx 8 8 Author URI: http://www.heavyskymobile.com … … 27 27 function wp_recaptcha_input() { 28 28 //echo '<input name="wp_recaptcha_register" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_register' ), false ) . ' /> Use reCAPTCHA when new user registering. </em><br><br>'; 29 echo '<input name="wp_recaptcha_comment" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_comment' ), false ) . ' /> Use reCAPTCHA when posting comments. </em><br><br>';29 echo '<input name="wp_recaptcha_comment" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_comment' ), false ) . ' /> Use reCAPTCHA only for guest. </em><br><br>'; 30 30 echo '<em>Site key: </em><input name="p_site_key" type="text" value=" '. get_option( 'p_site_key' ) . '" size = "50" /> <br><br>'; 31 31 echo '<em>Secret key: </em><input name="p_secret_key" type="text" value=" ' .get_option( 'p_secret_key' ) .'" size = "50"/><br><br>'; … … 46 46 47 47 if (!is_user_logged_in()) { 48 // config the comment form48 // config the comment form 49 49 50 50 add_filter('comment_form_field_comment','wp_recaptcha_config'); … … 55 55 } 56 56 57 } 57 } else { 58 add_filter('comment_form_field_comment','wp_recaptcha_config'); 59 60 // process the comment 61 62 add_filter('preprocess_comment','wp_recaptcha_process'); 63 } 58 64 59 65 /*
Note: See TracChangeset
for help on using the changeset viewer.