Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 Notifica email non inviare Dopo Commento 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 e-mail ogni volta che un autore commento è distaccato (comments_notify = 1), e-mail di notifica non è generato o inviati a notificare l'autore post se il commento è tenuto a coda di moderazione e solo successivamente approvata 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 per 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 è detenuto per richiedere la moderazione e di amministratore per approvare, o eliminare il messaggio di spam sta lavorando correttamente, con la posta elettronica, invia al amministratore indirizzo e-mail (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 fissata 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 attendere, è sufficiente modificare wp-includes/comment.php su WordPress blog directory sul server web, e aggiungere le seguenti righe di codice:
Before: Prima:
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
After: Dopo:
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option( 'comments_notify' ) == true ) {
wp_notify_postauthor( $comment );
}
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: Stai lettura una macchina tradotto pagina che è fornito "così come sono" senza 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 comprendere la grammatica, semantica, sintassi, idiomi del linguaggio naturale, così spesso produrre imprecise e bassa qualità del testo che è fuorviante e incomprensibile. Thus, please refer to Pertanto, si prega di fare riferimento a original English article articolo originale in inglese when in doubt. in caso di dubbio.
Related Articles Articoli correlati
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Rilasciata per il download
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Chiama per Undefined Funzione: wp_constrain_dimensions () durante il caricamento di immagini o image_downsize () in Galleria / Catalogo multimediale in WordPress 2.5
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 WordPress 2.5 Fix immagine o Media flash uploader non funziona problema in IE7
- WordPress 2.5 RC2 Released for Download WordPress 2.5 RC2 Rilasciata per il download
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Per chiamare Undefined Funzione: ctype_digit () in WordPress 2.5
- Make WordPress Blog More Secure Using Secret Key WordPress blog rendere più sicuro utilizzando chiave segreta
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Error sulla chiamata a Add_Query_Var in Taxonomy.php dopo l'aggiornamento a WordPress 2.5 RC2
- Contact Contatto
- WordPress 2.5 Released for Free Download WordPress 2.5 Rilasciato per il download gratuito
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Soluzione per scavalcare WordPress breve e visualizzare il [] Staffe Tag

































June 20th, 2008 11:29 20 Giugno 2008 11:29
Hello, Ciao,
The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. Il codice è stampato sotto 'prima' è diverso in quanto l'uno in wp-includes/comment.php. This is the code in comment.php: Questo è il codice in comment.php:
case 'approve':$query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
break;
case 'spam':
$query = "UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";
Which version of WP did you get that code from? Quale versione di WP fatto che si ottiene dal codice?
June 20th, 2008 11:53 20 Giugno 2008 11:53
version 2.5. versione 2.5.
June 20th, 2008 11:57 20 Giugno 2008 11:57
Hi, Salve,
The code I posted is from 2.5.1. Il codice ho postato da 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? Lei pensa che sostituisce il codice con quello da te pubblicato potrebbe risolvere questo problema?
June 20th, 2008 12:28 20 Giugno 2008 12:28
Try to just add in the additional lines (the difference). Prova a solo aggiungere ulteriori linee (la differenza).
June 27th, 2008 20:49 27 giugno, 2008 20:49
Hello, Ciao,
Tried it. Provato. It did not work. Non ha funzionato. Thanks anyways. Grazie comunque.
July 11th, 2008 17:30 Luglio 11, 2008 17:30
Thanks for the post ‘admin’ - I help manage a (non?)corporate blog, and my boss stopped getting email notifications since upgrading to 2.5.x - I do believe your suggested patch has fixed it. Grazie per il posto 'admin' - mi aiutano a gestire uno (non?) Corporate blog, e il mio capo smesso di ricevere notifiche via email dal momento che l'aggiornamento a 2.5.x - mi crederete ai vostri suggerito patch che ha fissato.
So, again thanks very much! Quindi, ancora una volta, grazie molto!
September 4th, 2008 04:15 4 settembre 2008 04:15
This WPMU behavior was driving me a bit nuts. Questo comportamento è stato WPMU guida un po 'mi noci. Much thanks for sharing your solution! Grazie molto per condividere la tua soluzione!
September 22nd, 2008 05:42 Settembre 22, 2008 05:42
Wow Cool ! Wow Cool!
Super Man Super Man
Nice Site Nice site
October 15th, 2008 07:26 Il 15 ottobre 2008 07:26
In 2.6.1 it should look as this: 2.6.1 In essa dovrebbe apparire come questo:
case 'approve':
$query = $wpdb->prepare("UPDATE wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option('comments_notify') == true ) {
$comment = get_comment($comment_id);
wp_notify_postauthor($comment_id, $comment->comment_type);
}
The only change is adding: L'unico cambiamento è l'aggiunta di:
== true