Errore nell’invio dei commenti con WordPress (CVS)

di il lunedì 17 gennaio 2005 · 2 commenti

in CMS

Ho riscontrato un problema con la versione di WordPress prelevabile dal CVS (attualmente la 1.3-alpha-5).
In pratica quando qualcuno invia un commento appare questo errore:

Warning: Missing argument 6 for check_comment() in /home/foobar/public_html/wp-includes/functions.php on line 1685

Ho risolto rimuovendo la variabile “$user_agent” dal file functions.php:
function check_comment($author, $email, $url, $comment, $user_ip) {

e commentando la riga seguente:
//if ( preg_match($pattern, $user_agent) ) return false;


Tiziano FogliataHai trovato interessante questo articolo? Sottoscrivi il Feed RSS o iscriviti alla NEWSLETTER per non perdere i prossimi aggiornamenti del blog. Se preferisci puoi anche seguirmi su Twitter.

{ 2 commenti }

1 Elena 17 gennaio 2005 alle 17:24

Dava anche a me lo stesso problema.
Grazie per la soluzione.

Ciao,
Elena.

2 Antibush 13 febbraio 2007 alle 04:41

Bush and the Republicans were not protecting us on 9-11, and we aren’t a lot safer now. We may be more afraid due to george bush, but are we safer? Being fearful does not necessarily make one safer. Fear can cause people to hide and cower. What do you think? What is he doing to us, and what is he doing to the world?
Our country is in debt until forever, we don’t have jobs, and we live in fear. We have invaded a country and been responsible for thousands of deaths.
We have lost friends and influenced no one. No wonder most of the world thinks we suck. Thanks to what george bush has done to our country during the past three years, we do!

I commenti a questo post sono chiusi.

Post precedente:

Post successivo: