Solución a problema de visualización de CAPTCHA en WordPress

El captcha es una herramienta de comprobación para validar que comentarios no sean hechos por BOTS.
El plugin creado por BestWebSoft es uno de los mas polulares en esta función, sin embargo en algunas ocasiones el captcha no es visible en la sección de comentarios.

Para solucionar este problema, hay que editar el archivo captcha.php en las siguientes líneas

// Add captcha into comments form
if( 1 == $cptch_options[‘cptch_comments_form’] ) {
global $wp_version;
if( version_compare($wp_version,’3′,’>=’) ) { // wp 3.0 +
add_action( ‘comment_form_after_fields’, ‘cptch_comment_form’);
add_action( ‘comment_form_logged_in_after’, ‘cptch_comment_form’);
add_filter( ‘preprocess_comment’, ‘cptch_comment_post’ );
} else {
for WP before WP 3.0
add_action( ‘comment_form’, ‘cptch_comment_form’ );
add_filter( ‘preprocess_comment’, ‘cptch_comment_post’ );
}
}

Debe quedar se la siguiente forma

// Add captcha into comments form
if( 1 == $cptch_options[‘cptch_comments_form’] ) {
global $wp_version;
//if( version_compare($wp_version,’3′,’>=’) ) { // wp 3.0 +
// add_action( ‘comment_form_after_fields’, ‘cptch_comment_form’);
// add_action( ‘comment_form_logged_in_after’, ‘cptch_comment_form’);
// add_filter( ‘preprocess_comment’, ‘cptch_comment_post’ );
//} else {
// for WP before WP 3.0
add_action( ‘comment_form’, ‘cptch_comment_form’ );
add_filter( ‘preprocess_comment’, ‘cptch_comment_post’ );
//}
}

Eso es todo

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x