Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 Le email di notifica non invia commento Dopo Approvazione in WordPress 2,5 e 2.5.1

In WordPress 2.5 WordPress 2,5 and e Wordpress 2.5.1 Wordpress 2.5.1 , when the option is set to email post author whenever a comment is posted (comments_notify = 1), no notification email is generated or sent to notify the post author if the comment is held in moderation queue and is only approved later via edit-comments.php. , Quando l'opzione è impostata su post-mail ogni volta che un autore commento è distaccato (comments_notify = 1), nessun messaggio di notifica viene generato o spedito a notificare il post autore del commento, se si tiene in coda di moderazione e solo successivamente approvato tramite edit-commenti . PHP.

Prior to WordPress 2.5, an email is sent on approval to post author even if a comment is required to be approved and not posted instantly. Prima di WordPress 2,5, una e-mail viene inviata sul posto di approvazione autore anche se un commento è necessario per essere approvati e non pubblicati immediatamente. However, notification that a comment is held for moderation and require administrator’s action to approve, delete or spam the message is working properly, with email sends to administrator’s email address (admin_email), not post author. Tuttavia, la notifica che un commento è sottoposti a moderazione e richiedono l'azione di amministratore ad approvare, o eliminare il messaggio di spam sta lavorando correttamente, con l'e-mail invia al amministratore indirizzo di posta elettronica (admin_email), non post autore.

It’sa bug that has been introduced in WordPress 2.5, and slips into WordPress 2.5.1 when moderation.php functionality was moved into edit-comments.php. Si tratta di un bug che è stato introdotto in WordPress 2,5, e scivola in WordPress 2.5.1 quando moderation.php funzionalità è stata spostata in edit-comments.php. The bug will probably be fixed in WordPress 2.5.2 release. Il bug sarà probabilmente fissato in WordPress 2.5.2 release. If you can’t wait, simply edit wp-includes/comment.php on WordPress blog directory on web server, and add the following lines of code: Se non è possibile aspettare, semplicemente a modificare wp-includes/comment.php blog di WordPress directory sul server web, e aggiungere le seguenti righe di codice:

Before: Prima:

break; break;
case 'approve': caso 'approvare':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id); $ query = $ wpdb-> prepare ( "UPDATE $ wpdb-> commenti SET comment_approved ='1 'DOVE comment_ID =% d limite 1", $ comment_id);
break; break;
case 'spam': caso 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id); $ query = $ wpdb-> prepare ( "UPDATE $ wpdb-> commenti SET comment_approved = 'spam' DOVE comment_ID =% d limite 1", $ comment_id);

After: Dopo:

break; break;
case 'approve': caso 'approvare':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id); $ query = $ wpdb-> prepare ( "UPDATE $ wpdb-> commenti SET comment_approved ='1 'DOVE comment_ID =% d limite 1", $ comment_id);
if ( get_option( 'comments_notify' ) == true ) { if (get_option ( 'comments_notify') == true) (
wp_notify_postauthor( $comment ); wp_notify_postauthor ($ commento);
} )
break; break;
case 'spam': caso 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id); $ query = $ wpdb-> prepare ( "UPDATE $ wpdb-> commenti SET comment_approved = 'spam' DOVE comment_ID =% d limite 1", $ comment_id);

IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: stai leggendo una macchina tradotto pagina che è fornito "così com'è" senza alcuna garanzia. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. A differenza di traduzione umana, traduzione automatica non capisce la grammatica, semantica, sintassi, idiomi del linguaggio naturale, così spesso inesatte produrre e di bassa qualità testo che è fuorviante e incomprensibile. Thus, please refer to Pertanto, si prega di fare riferimento a original English article articolo originale in lingua inglese when in doubt. in caso di dubbio.



5 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 5 Le risposte alla "Notifica email non invia commento Dopo Approvazione in WordPress 2,5 e 2.5.1"

  1. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:29 20 giugno 2008 11:29
    1

    Hello, Ciao,

    The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. Il codice stampato in 'prima' è diverso che in quello in wp-includes/comment.php. This is the code in comment.php: Questo è il codice in comment.php:

    case 'approve': caso 'approvare':
    $query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1"; $ query = "UPDATE $ wpdb-> commenti SET comment_approved ='1 'DOVE comment_ID =' $ comment_id 'LIMITE 1";
    break; break;
    case 'spam': caso 'spam':
    $query = "UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1"; $ query = "UPDATE $ wpdb-> commenti SET comment_approved = 'spam' DOVE comment_ID = '$ comment_id' LIMITE 1";

    Which version of WP did you get that code from? Quale versione di WP avete che da codice?

  2. admin
    June 20th, 2008 11:53 20 giugno 2008 11:53
    2

    version 2.5. Versione 2,5.

  3. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:57 20 giugno 2008 11:57
    3

    Hi, Salve,

    The code I posted is from 2.5.1. Il codice postato da 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? Pensa che questo codice in sostituzione con quello da te pubblicato potrebbe risolvere questo problema?

  4. admin
    June 20th, 2008 12:28 20 giugno 2008 12:28
    4

    Try to just add in the additional lines (the difference). Appena tenta di aggiungere in linee aggiuntive (differenza).

  5. Guillermo Scharffenorth Guillermo Scharffenorth
    June 27th, 2008 20:49 Giugno 27, 2008 20:49
    5

    Hello, Ciao,

    Tried it. Provato. It did not work. Non ha funzionato. Thanks anyways. Grazie comunque.

Leave a Reply Lasciare una risposta

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> È possibile utilizzare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Iscriviti senza commentare


Custom Search

Incoming Search Terms for the Article Cerca in arrivo Condizioni per l'articolo

wordpress WordPress - -- wordpress not sending email WordPress non l'invio di email - -- wordpress 2.5 email moderation WordPress 2,5 moderazione e-mail - -- comment notification wordpress commento notifica WordPress - -- wordpress not sending notification WordPress non l'invio di notifica - -- no comment notifications wordpress 2.5 no comment notifiche WordPress 2,5 - -- how do i set comment approval? Come faccio a impostare il commento di approvazione? - -- wordpress 2.5 email authors when comments posted wordpress 2,5 autori email quando commenti postati - -- Notification Emails Not Send After Comment Approval Email di notifica non invia commento dopo l'approvazione - -- wordpress email comments for approval WordPress commenti e-mail per l'approvazione - -- wordpress Register Plus not sending email wordpress Registrati Plus non l'invio di email - -- wordpress 2.5 not sending email WordPress 2,5 non l'invio di email - -- wordpress 2.5.1 email notification WordPress 2.5.1 email di notifica - -- new comment notification wordpress 2.5 admin nuovo commento notifica wordpress 2,5 admin - -- wordpress 2.5.1 not receiving emails WordPress 2.5.1 non la ricezione di email - -- approve comments php approvare commenti PHP - -- $wpdb->query not working 2.5 $ wpdb-> query non funziona 2,5 - -- comment notification wordpress 2.5 commento di notifica di WordPress 2,5 - -- 2.5.1, comment notification, wordpress 2.5.1, commento di notifica, wordpress - -- wordpress notification 2.5 disable WordPress 2,5 disattivare la notifica - -- send comments in wordpress to email inviare commenti in WordPress alla posta elettronica - -- wordpress approval email WordPress approvazione email - -- wordpress comment notification on approval WordPress commento sulla notifica di approvazione - -- wordpress, comment notification, problem, 2.5 wordpress, commento notifica, problema, 2,5 - -- wordpress 2.5 no notification email WordPress 2,5 assenza di notifica e-mail - -- moderation notification wordpress moderazione notifica WordPress - -- wordpress auto comment elfogadás WordPress auto commento elfogadás - -- wordpress not sending comment notification emails wordpress non l'invio di notifiche via email commento - -- wordpress register-plus WordPress registro-plus - -- wp_notify_postauthor override wp_notify_postauthor override - -- wordpress no email notification comment WordPress email di notifica non commento - -- wont translate edit-comments.php approved wont tradurre edit-comments.php approvato - -- send to admin not author comment notification wordpress inviare a admin autore non commento notifica wordpress - -- wordpress 2.5.2 problem + mail notification wordpress 2.5.2 + problema di notifica dei messaggi - -- wordpress notification not working 2.5 comment wordpress notifica non funziona 2,5 commento - -- wordpress 2.5+ new comment + notify admin wordpress 2.5 + + nuovo commento notificare admin - -- wordpress comment no approval email WordPress commento non approvazione email - -- wordpress. WordPress. comment notification, php, 2.5 commento di notifica, php, 2,5 - -- wordpress comment approving not sending email wordpress commento non approva l'invio di email - -- wordpress not sending email comments 2.51 wordpress l'invio di email non commenti 2,51 - -- WordPress : not receiving email notification when comments are approved WordPress: non ricevere email di notifica quando commenti sono approvate - -- wordpress notify author comment WordPress notificare autore commento - -- wordpress 2.5.1 admin email comments notification wordpress 2.5.1 admin e-mail di notifica commenti - -- wordpress 2.5 comment notification WordPress 2,5 notifica commento - -- email is not generated for moderation of new user with wordpress e-mail non è generato per la moderazione del nuovo utente con WordPress - -- email notification in wp 2.5 notifica via email in WP 2,5 - -- wordpress email on approval WordPress email di approvazione - -- code for comment approval codice per l'approvazione commento - -- wordpress notify author of comments WordPress notificare autore di commenti - -- Wordpress wp_notify_postauthor Wordpress wp_notify_postauthor - --