Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 Les messages de notification d'envoyer un commentaire Après approbation dans WordPress 2.5 et 2.5.1

In Dans WordPress 2.5 WordPress 2.5 and et 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. , Lorsque l'option est définie à l'e-mail après l'auteur à chaque fois qu'un commentaire est posté (comments_notify = 1), aucun e-mail de notification est produite ou envoyée à notifier à l'auteur de poste si le commentaire est tenue en file d'attente de modération et seulement est approuvé ultérieurement par voie d'edit-commentaires . 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. Avant de WordPress 2.5, un courriel est envoyé sur l'approbation de post auteur, même si un commentaire est nécessaire pour être approuvés et pas affiché instantanément. 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. Toutefois, la notification qui est un commentaire qui s'est tenue à la modération et à exiger de l'administrateur de l'action à approuver, ou supprimer le message spam fonctionne correctement, avec le courrier électronique envoie à l'administrateur de l'adresse e-mail (admin_email), pas de message auteur.

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. Il s'agit d'un bug qui a été introduit dans WordPress 2.5, et se glisse dans WordPress 2.5.1 lorsque moderation.php fonctionnalité a été déplacée dans edit-comments.php. The bug will probably be fixed in WordPress 2.5.2 release. Le problème sera probablement fixé dans 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: Si vous ne pouvez pas attendre, il vous suffit de modifier wp-includes/comment.php sur WordPress blog annuaire sur serveur web, et ajouter les lignes suivantes de code:

Before: Avant:

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: Après:

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. IMPORTANT: Vous lisez une machine qui traduit la page est fourni "tel quel" sans garantie. 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. Contrairement à la traduction humaine, traduction automatique ne comprend pas la grammaire, sémantique, la syntaxe, idiomes du langage naturel, ce qui produit souvent inexacts et la faible qualité du texte qui est trompeur et incompréhensible. Thus, please refer to Ainsi, s'il vous plaît se référer à original English article article original en anglais when in doubt. en cas de doute.



9 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 9 réponses à "les messages de notification d'envoyer un commentaire Après approbation dans WordPress 2.5 et 2.5.1"

  1. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:29 Juin 20 Juillet 2008 11h29
    1

    Hello, Bonjour,

    The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. Le code que vous avez imprimée sous la rubrique «avant» est différente en ce sens que celui de wp-includes/comment.php. This is the code in comment.php: Il s'agit du code dans 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? Quelle version de WP vous êtes-vous de ce code?

  2. admin
    June 20th, 2008 11:53 Juin 20 Juillet 2008 11h53
    2

    version 2.5. version 2.5.

  3. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:57 Juin 20 Juillet 2008 11h57
    3

    Hi, Salut,

    The code I posted is from 2.5.1. Le code que j'ai affiché est de 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? Pensez-vous que le remplacement de ce code avec celui que vous avez affiché pourrait résoudre ce problème?

  4. admin
    June 20th, 2008 12:28 Juin 20 Juillet 2008 12h28
    4

    Try to just add in the additional lines (the difference). Essayez de vous ajoutez à la des lignes supplémentaires (la différence).

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

    Hello, Bonjour,

    Tried it. Essayé. It did not work. Cela n'a pas fonctionné. Thanks anyways. Merci de toute façon.

  6. paul
    July 11th, 2008 17:30 Juillet 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. Merci pour le poste 'admin' - je faire pour contribuer à la gestion d'un (non?) Corporate blog, et mon patron cessé de faire des notifications par courrier électronique depuis la mise à niveau vers 2.5.x - Je ne crois que votre patch a suggéré qu'il fixe.

    So, again thanks very much! Donc, encore une fois merci beaucoup!

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

    This WPMU behavior was driving me a bit nuts. WPMU Ce comportement a été conduite moi un peu de noix. Much thanks for sharing your solution! Mille mercis pour le partage de votre solution!

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

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

  9. Marcin
    October 15th, 2008 07:26 15 octobre 2008 07:26
    9

    In 2.6.1 it should look as this: En 2.6.1 il devrait ressembler comme ceci:

    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: Le seul changement est d'ajouter:

    == true

Leave a Reply Laisser un commentaire

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> Vous pouvez utiliser ces balises: <a href="" title="fete_christel <abbr title="fete_christel <acronym title="fete_christel <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting S'abonner sans commentaires


Custom Search

Incoming Search Terms for the Article Des termes de recherche utilisés pour l'article

wordpress not sending email wordpress pas envoyer un e-mail - -- wordpress comment notification wordpress communication commentaires - -- wordpress wordpress - -- wordpress not sending emails wordpress pas envoyer des e-mails - -- WordPress Notification Notification WordPress - -- wordpress comment notification email wordpress commentaire e-mail de notification - -- wordpress not sending notification wordpress ne pas envoyer de notification - -- wordpress author comment notification wordpress auteur notification commentaire - -- wordpress email comment notification wordpress e-mail de notification de commentaires - -- $wpdb->prepare $ wpdb-> prepare - -- wordpress not emailing wordpress pas emailing - -- wordpress 2.5 email moderation WordPress 2.5 modération e-mail - -- wordpress email comments for approval wordpress e-mail commentaires pour approbation - -- comment notification wordpress commentaire notification wordpress - -- no comment notifications wordpress 2.5 aucun commentaire notifications WordPress 2.5 - -- how do i set comment approval? Comment puis-je configurer l'approbation commentaire? - -- wordpress email comment author e-mail wordpress commentaire auteur - -- wordpress 2.5.1 not sending mail WordPress 2.5.1 ne pas envoyer de courrier - -- wordpress 2.5.1 not receiving new comment emails WordPress 2.5.1 ne reçoit pas de nouveau commentaire, les e-mails - -- wordpress comment approval email wordpress commentaire approbation e-mail - -- wordpress is not sending e-mail notification with gmail wordpress n'est pas l'envoi de notification par e-mail avec Gmail - -- wordpress email notification wordpress notification par e-mail - -- wordpress not emailing notifications wordpress pas notifications e-mail - -- wordpress Comment notification emails Commentaire wordpress les messages de notification - -- wordpress email post notification wordpress e-mail notification - -- wordpress 2.5 email authors when comments posted WordPress 2.5 e-mail lorsque les auteurs de commentaires - -- Notification Emails Not Send After Comment Approval Les messages de notification de ne pas envoyer de commentaires après approbation - -- wordpress Register Plus not sending email WordPress ne Register Plus envoi d'e-mail - -- wordpress 2.5 not sending email WordPress 2.5 ne pas envoyer un e-mail - -- wordpress 2.5.1 email notification WordPress 2.5.1 notification par e-mail - -- new comment notification wordpress 2.5 admin nouveau commentaire notification WordPress 2.5 admin - -- wordpress notify by email comments wordpress notifier par e-mail commentaires - -- wordpress 2.5.1 not receiving emails WordPress 2.5.1 de ne pas recevoir d'e-mails - -- approve comments php approuver commentaires php - -- $wpdb->query not working 2.5 $ wpdb-> query 2.5 ne fonctionne pas - -- comment notification wordpress 2.5 commentaire notification wordpress 2.5 - -- 2.5.1, comment notification, wordpress 2.5.1, commentaire de notification, wordpress - -- wordpress notification 2.5 disable WordPress 2.5 désactiver la notification - -- send comments in wordpress to email faire parvenir vos commentaires dans wordpress par e-mail - -- wordpress approval email wordpress approbation e-mail - -- send email via php for approval envoyer un e-mail via php pour approbation - -- wordpress comment notification on approval wordpress commentaire notification de l'approbation - -- wordpress, comment notification, problem, 2.5 wordpress, commentaire notification, problème, 2.5 - -- wordpress 2.5 no notification email WordPress 2.5 Non e-mail de notification - -- moderation notification wordpress modération notification wordpress - -- wordpress auto comment elfogadás wordpress auto commentaire elfogadás - -- wordpress not sending comment notification emails wordpress ne pas envoyer les messages de notification de commentaires - -- wordpress register-plus wordpress registre de plus de - -- wp_notify_postauthor override wp_notify_postauthor l'emporter sur - -- wordpress no email notification comment wordpress aucun commentaire notification par e-mail - --