• Resolved Paolo

    (@paoltaia)


    Hi,

    I’ve found a small syntax error.

    $errors['captcha'] = _( 'Please complete the CAPTCHA.', 'yourtextdomain' );

    should be:

    $errors['captcha'] = __( 'Please complete the CAPTCHA.', 'yourtextdomain' );

    text domain requires 2 underscores.

    With one you get a warning in error log:

    Warning: _() expects exactly 1 parameter, 2 given in …./functions.php on line xyz

    Thank you

    https://www.ads-software.com/plugins/simple-recaptcha/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Small php error’ is closed to new replies.