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.
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 Chiamata alla funzione: wp_constrain_dimensions () durante il caricamento delle 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 fissare l'immagine o Flash Media 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 Chiamata alla funzione: ctype_digit () in WordPress 2,5
- Make WordPress Blog More Secure Using Secret Key WordPress Blog rendere più sicura usando chiave segreta
- Contact Contatto
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Errore fatale sulla chiamata a Add_Query_Var in Taxonomy.php dopo l'aggiornamento a WordPress 2,5 RC2
- WordPress 2.5 Released for Free Download WordPress 2,5 immesse in libera Download
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Soluzione Per ignorare WordPress breve e di visualizzare l'[] Supporti 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 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?
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 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?
June 20th, 2008 12:28 20 giugno 2008 12:28
Try to just add in the additional lines (the difference). Appena tenta di aggiungere in linee aggiuntive (differenza).
June 27th, 2008 20:49 Giugno 27, 2008 20:49
Hello, Ciao,
Tried it. Provato. It did not work. Non ha funzionato. Thanks anyways. Grazie comunque.