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.



9 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 9 Responses to "Notifica email non inviare Dopo Commento 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 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?

  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 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?

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

    Try to just add in the additional lines (the difference). Prova a solo aggiungere ulteriori linee (la differenza).

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

    Hello, Ciao,

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

  6. paul paolo
    July 11th, 2008 17:30 Luglio 11, 2008 17:30
    6

    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!

  7. Chris
    September 4th, 2008 04:15 4 settembre 2008 04:15
    7

    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!

  8. ordersomabuyg
    September 22nd, 2008 05:42 Settembre 22, 2008 05:42
    8

    Wow Cool ! Wow Cool!
    Super Man Super Man
    Nice Site Nice site

  9. Marcin
    October 15th, 2008 07:26 Il 15 ottobre 2008 07:26
    9

    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

Leave a Reply Lascia un Commento

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 entrata Termini per l'articolo

wordpress not sending email wordpress non inviare e-mail - -- wordpress comment notification wordpress commento notifica - -- wordpress wordpress - -- wordpress not sending emails wordpress non inviare email - -- WordPress Notification Notifica WordPress - -- wordpress comment notification email wordpress commento notifica e-mail - -- wordpress not sending notification wordpress non l'invio di notifica - -- wordpress author comment notification wordpress autore commento notifica - -- wordpress email comment notification wordpress e-mail di notifica commento - -- $wpdb->prepare $ wpdb-> preparare - -- wordpress not emailing wordpress non emailing - -- wordpress 2.5 email moderation WordPress 2.5 moderazione e-mail - -- wordpress email comments for approval wordpress commenti e-mail per l'approvazione - -- comment notification wordpress Commenta notifica wordpress - -- no comment notifications wordpress 2.5 Nessun commento notifiche wordpress 2.5 - -- how do i set comment approval? Come faccio a impostare commento approvazione? - -- wordpress email comment author wordpress commento autore e-mail - -- wordpress 2.5.1 not sending mail WordPress 2.5.1 non inviare la posta - -- wordpress 2.5.1 not receiving new comment emails WordPress 2.5.1 che non ricevono messaggi di posta elettronica nuovo commento - -- wordpress comment approval email wordpress commento approvazione e-mail - -- wordpress is not sending e-mail notification with gmail wordpress, non è l'invio di e-mail di notifica con Gmail - -- wordpress email notification wordpress notifica via email - -- wordpress not emailing notifications wordpress non notifiche e-mail - -- wordpress Comment notification emails WordPress Commento notifica e-mail - -- wordpress email post notification wordpress post-mail di notifica - -- wordpress 2.5 email authors when comments posted WordPress 2.5 autori e-mail quando commenti postati - -- Notification Emails Not Send After Comment Approval Notifica e-mail non inviare commento dopo l'approvazione - -- wordpress Register Plus not sending email Registrati wordpress Plus non inviare e-mail - -- wordpress 2.5 not sending email WordPress 2.5 non inviare e-mail - -- wordpress 2.5.1 email notification WordPress 2.5.1 notifica via email - -- new comment notification wordpress 2.5 admin nuovo commento notifica wordpress 2.5 admin - -- wordpress notify by email comments wordpress notifica via e-mail commenti - -- wordpress 2.5.1 not receiving emails WordPress 2.5.1 non la ricezione di email - -- approve comments php approvare i commenti php - -- $wpdb->query not working 2.5 $ wpdb-> query non funziona 2.5 - -- comment notification wordpress 2.5 Commenta notifica wordpress 2.5 - -- 2.5.1, comment notification, wordpress 2.5.1, commento notifica, wordpress - -- wordpress notification 2.5 disable WordPress 2.5 disattivare la notifica - -- send comments in wordpress to email inviare commenti in wordpress per e-mail - -- wordpress approval email wordpress approvazione e-mail - -- send email via php for approval inviare e-mail tramite php per l'approvazione - -- 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 di mancata 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 commentare l'invio di e-mail di notifica - -- wordpress register-plus wordpress registro plus - -- wp_notify_postauthor override wp_notify_postauthor override - -- wordpress no email notification comment wordpress non notifica via email commento - --