blog.pauloasilva.com

WordPress 3 and Math Comment Spam Protection

Só para deixar uma nota mental: para que o plugin Math Comment Spam Protection funcione na versão 3 do WordPress é necessário editar a linha 211 do ficheiro math-comment-spam-protection.php que se apresenta como abaixo:

if (  ( !isset($user_ID) ) && ( $comment_data['comment_type'] ==) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks

devendo a mesma adoptar a seguinte forma:

if (  ( !$user_ID ) && ( $comment_data['comment_type'] ==) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks

(foi removida a função isset)

Fonte original em inglês aqui.

Deixar uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

*


five − = 3

Pode usar estas etiquetas HTML e atributos: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">