Changeset 815240
- Timestamp:
- 12/05/2013 04:40:52 AM (12 years ago)
- Location:
- comment-gatekeeper
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
assets/screenshot-1.png (added)
-
trunk/assets (deleted)
-
trunk/comment-gatekeeper.php (modified) (1 diff)
-
trunk/includes/comment-form.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
comment-gatekeeper/trunk/comment-gatekeeper.php
r814784 r815240 6 6 Author: Stuart Sequeira 7 7 Author URI: http://lb3computingsolutions.com/about/ 8 Version: 0.9 8 Version: 0.9.1 9 9 */ 10 10 -
comment-gatekeeper/trunk/includes/comment-form.php
r814784 r815240 62 62 if( isset($_POST['gatekey'] ) ){ 63 63 64 if( '' == $_POST['gatekey']){ 65 66 wp_die( __('<strong>ERROR</strong>: please enter a valid spam-filtering answer.' , 'lb3cgk' ) ); //no gatekey was entered 67 68 } 69 64 70 $gatekey = $_POST['gatekey']; 65 71 66 72 }else{ 67 73 68 $gatekey = 'nonce_al_pass'; //no key was entered so set a fake key to fail 74 //$gatekey = 'nonce_al_pass'; //no key was entered so set a fake key to fail 75 wp_die( __('<strong>ERROR</strong>: please enter a valid spam-filtering answer.' , 'lb3cgk' ) );//gatekey was not set 76 77 } 69 78 70 }71 72 79 $result = ( $gatekey == $gatelock ); 73 80 74 81 if( !$result){ 75 82 76 $_POST['comment'] = ''; //empty the post comment and let it fail 83 //$_POST['comment'] = ''; //empty the post comment and let it fail 84 wp_die( __('<strong>SORRY</strong>: you did not answer to gatekeeper question correctly.' , 'lb3cgk' ) ); 77 85 78 86 } -
comment-gatekeeper/trunk/readme.txt
r814784 r815240 40 40 == Changelog == 41 41 42 = 0.9.1 = 43 Feature testing 44 * Added user-friendly error messages for empty answer field and for incorrect answer field 45 * keeping this as testing version; will also see if there are any other improvement ideas from users 46 * Intend to roll this out as part of 1.0 after testing 47 42 48 = 0.9 = 43 49 * Initial submission to WordPress
Note: See TracChangeset
for help on using the changeset viewer.