Changeset 2911495
- Timestamp:
- 05/12/2023 08:07:03 AM (22 months ago)
- Location:
- svg-captcha/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
svg-captcha/trunk/includes/class-svg-captcha.php
r2877676 r2911495 217 217 add_action('wp_ajax_svgc_captcha_reload', array($this, 'svgc_captcha_reload')); 218 218 219 add_action('svgc_render_form_input', array($this,'svgc_render_form_input'),9999); 220 221 add_action('svgc_validate_register_captcha', array($this,'svgc_validate_register_captcha'),9999,3); 222 219 223 add_filter('svgc_location_enable_captcha_on_register',function(){ 220 224 221 225 // Add custom captcha field to login form 222 226 223 add_action('register_form', array($this, 224 225 add_action('registration_errors', array($this, 227 add_action('register_form', array($this,'svgc_render_form_input'),9999); 228 229 add_action('registration_errors', array($this,'svgc_validate_register_captcha'),10,3); 226 230 }); 227 231 … … 231 235 232 236 add_action('login_form', array($this, 'svgc_login_form'),10,1); // using default page 233 237 234 238 add_action('login_form_middle', array($this, 'svgc_login_form'),10,2); // using wp_login_form 235 239 … … 242 246 243 247 add_filter('comment_form_field_comment', array($this, 'svgc_form_input')); // Add a filter to verify if the captcha in the comment section was correct. 248 244 249 add_filter('preprocess_comment', array($this, 'svgc_validate_form_captcha')); 245 250 }); … … 470 475 if( empty($_POST['svgc_answer']) || !is_array($_POST['svgc_answer']) ) { 471 476 472 $errors->add('invalid_captcha', __( ' <strong>ERROR</strong>:You need to enter a captcha', 'svg-captcha' ) );477 $errors->add('invalid_captcha', __( 'You need to enter a captcha', 'svg-captcha' ) ); 473 478 } 474 479 else { … … 478 483 if( !$this->svgc_check($answer) ) { 479 484 480 $errors->add('invalid_captcha', __( ' <strong>ERROR</strong>:Invalid captcha, try again', 'svg-captcha' ) );485 $errors->add('invalid_captcha', __( 'Invalid captcha, try again', 'svg-captcha' ) ); 481 486 } 482 487 } -
svg-captcha/trunk/readme.txt
r2893492 r2911495 8 8 Requires WP: 6.1.1 9 9 Requires PHP: 6.0 10 Stable Tag: 1.0. 910 Stable Tag: 1.0.10 11 11 Tested up to: 6.2 12 12 -
svg-captcha/trunk/svg-captcha.php
r2893492 r2911495 3 3 * Plugin Name: SVG Captcha 4 4 * Plugin URI: https://code.recuweb.com/get/svg-captcha/ 5 * Version: 1.0. 95 * Version: 1.0.10 6 6 * Description: Validate your forms with a self hosted SVG Captcha. 7 7 * Author: rafasashi
Note: See TracChangeset
for help on using the changeset viewer.