Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 Benachrichtigungs-E-Mails nicht senden Nach Kommentar Genehmigung in WordPress 2.5 und 2.5.1

In WordPress 2.5 WordPress 2/5 and und 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. , Wenn die Option gesetzt ist, per E-Mail-post-Autor, wenn ein Kommentar postiert wird (comments_notify = 1), keine Benachrichtigung per E-Mail generiert wird oder an dem post-Autor, wenn der Kommentar ist in Moderation Queue und ist nur genehmigt später über edit-Stellungnahmen . 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. Vor WordPress 2.5, eine E-Mail gesendet wird über die Zulassung zur post-Autor, auch wenn ein Kommentar ist erforderlich, um genehmigt werden und nicht sofort gebucht. 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. Allerdings, eine Mitteilung darüber, dass ein Kommentar ist für eine Prüfung zurückgehalten und erfordern Administrator-Aktion zu genehmigen, zu löschen oder die Spam-Nachricht ist nicht ordnungsgemäß funktioniert, mit E-Mail sendet auf den Administrator-E-Mail-Adresse (admin_email), nicht-post-Autor.

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. Es ist ein Fehler, wurde in WordPress 2.5, und rutscht in WordPress 2.5.1, wenn moderation.php Funktionalität wurde in edit-comments.php. The bug will probably be fixed in WordPress 2.5.2 release. Der Fehler wird wahrscheinlich festgesetzt werden 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: Wenn Sie nicht warten können, einfach bearbeiten wp-includes/comment.php auf WordPress Blog Verzeichnis auf Web-Server, und fügen Sie die folgenden Zeilen Code:

Before: Vorher:

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: Nach:

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. WICHTIG: Du bist eine Maschine Lesung übersetzt, die Seite wird "as is" ohne 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. Im Gegensatz zu menschlichen Übersetzung, maschinelle Übersetzung nicht verstehen, die Grammatik, Semantik, Syntax, Idiome der natürlichen Sprache, so oft ungenau und niedrige Qualität Text, ist irreführend und unverständlich. Thus, please refer to So, wenden Sie sich bitte an original English article Original Englisch Artikel when in doubt. Wenn Sie Zweifel haben.



9 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 9 Responses to "Benachrichtigungs-E-Mails nicht senden Nach Kommentar Genehmigung in WordPress 2.5 und 2.5.1"

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

    Hello, Hallo,

    The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. Der Code, den Sie gedruckt unter "vor" ist in verschiedenen, dass die ein in wp-includes/comment.php. This is the code in comment.php: Dies ist der Code 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? Welche Version von WP haben Sie, dass Code aus?

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

    version 2.5. Version 2.5.

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

    Hi,

    The code I posted is from 2.5.1. Der Code I gebucht ist von 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? Glauben Sie, dass anstelle dieser Code mit den ein Sie auf dem Laufenden könnte dieses Problem lösen?

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

    Try to just add in the additional lines (the difference). Versuchen Sie, fügen Sie einfach in die zusätzliche Zeilen (die Differenz).

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

    Hello, Hallo,

    Tried it. Versucht es. It did not work. Es hat nicht funktioniert. Thanks anyways. Dank Wie auch immer.

  6. paul
    July 11th, 2008 17:30 11. Juli 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. Vielen Dank für den Posten "admin" - ich helfen verwalten ein (nicht?) Corporate-Blog, und mein Chef nicht mehr bekommen E-Mail-Benachrichtigungen, da ein Upgrade auf 2.5.x - ich glaube, Ihre vorgeschlagen Patch festgesetzt ist, hat es.

    So, again thanks very much! Also, noch einmal Dank sehr viel!

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

    This WPMU behavior was driving me a bit nuts. Dieses Verhalten wurde WPMU treibende mir ein bisschen verrückt. Much thanks for sharing your solution! Viel Dank für Ihre Lösung!

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

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

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

    In 2.6.1 it should look as this: In 2.6.1 Es sollte aussehen, als diese:

    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: Die einzige Änderung ist, und fügte hinzu:

    == true

Leave a Reply Lassen Sie eine Antwort

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> Sie können diese Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Abonnieren ohne zu kommentieren


Custom Search

Incoming Search Terms for the Article Eingehende Suche Nutzungsbedingungen für die Artikel

wordpress not sending email wordpress nicht Senden von E-Mails - -- wordpress comment notification WordPress Kommentar Anmeldung - -- wordpress wordpress - -- wordpress not sending emails wordpress nicht Senden von E-Mails - -- wordpress comment notification email WordPress Kommentar Benachrichtigung per E-Mail - -- wordpress not sending notification wordpress nicht Senden Anmeldung - -- wordpress author comment notification WordPress Autor Kommentar Anmeldung - -- wordpress email comment notification WordPress E-Mail-Benachrichtigung Kommentar - -- WordPress Notification WordPress Benachrichtigung - -- wordpress not emailing wordpress nicht per E-Mail - -- wordpress 2.5 email moderation WordPress 2/5 E-Mail-Moderation - -- wordpress email comments for approval WordPress E-Mail Bemerkungen zur Genehmigung - -- comment notification wordpress Kommentar Mitteilung wordpress - -- no comment notifications wordpress 2.5 no comment Mitteilungen wordpress 2/5 - -- how do i set comment approval? Wie kann ich Kommentar Genehmigung? - -- wordpress email comment author WordPress E-Mail-Kommentar Autor - -- wordpress 2.5.1 not sending mail WordPress 2.5.1 nicht Senden von E-Mails - -- wordpress 2.5.1 not receiving new comment emails WordPress 2.5.1 keine neuen Kommentar schreiben E-Mails - -- wordpress comment approval email WordPress Kommentar per E-Mail - -- wordpress is not sending e-mail notification with gmail WordPress ist nicht das Senden von E-Mail-Benachrichtigung mit Google Mail - -- wordpress not emailing notifications wordpress nicht per E-Mail-Benachrichtigungen - -- $wpdb->prepare $ wpdb-> prepare - -- wordpress Comment notification emails WordPress Kommentar Benachrichtigungs-E-Mails - -- wordpress email post notification WordPress E-Mail-Post-Zustellung - -- wordpress 2.5 email authors when comments posted WordPress 2/5 E-Mail, wenn Autoren Kommentare - -- Notification Emails Not Send After Comment Approval Benachrichtigungs-E-Mails nicht senden nach Genehmigung Kommentar - -- wordpress Register Plus not sending email WordPress Register Plus nicht Senden von E-Mails - -- wordpress 2.5 not sending email WordPress 2/5 nicht Senden von E-Mails - -- wordpress 2.5.1 email notification WordPress 2.5.1 E-Mail-Benachrichtigung - -- new comment notification wordpress 2.5 admin neuen Kommentar Anmeldung 2/5 wordpress admin - -- wordpress notify by email comments WordPress melden per E-Mail Bemerkungen - -- wordpress 2.5.1 not receiving emails WordPress 2.5.1 nicht Empfangen von E-Mails - -- approve comments php genehmigen Kommentare php - -- $wpdb->query not working 2.5 $ wpdb-> Abfrage nicht funktioniert 2/5 - -- comment notification wordpress 2.5 Kommentar Mitteilung wordpress 2/5 - -- 2.5.1, comment notification, wordpress 2.5.1, Kommentar Anmeldung, wordpress - -- wordpress notification 2.5 disable WordPress Anmeldung 2/5 deaktivieren - -- send comments in wordpress to email Senden Sie Kommentare in WordPress eine E-Mail - -- wordpress approval email WordPress per E-Mail - -- send email via php for approval Senden von E-Mails über php für die Zulassung - -- wordpress comment notification on approval WordPress Kommentar Mitteilung über die Zulassung - -- wordpress, comment notification, problem, 2.5 WordPress, Kommentar Anmeldung, Problem, 2/5 - -- wordpress 2.5 no notification email WordPress 2/5 keine Benachrichtigung per E-Mail - -- moderation notification wordpress Moderation Mitteilung wordpress - -- wordpress auto comment elfogadás WordPress auto Kommentar elfogadás - -- wordpress not sending comment notification emails wordpress nicht Senden Kommentar Benachrichtigungs-E-Mails - -- wordpress register-plus WordPress Register-plus - -- wp_notify_postauthor override wp_notify_postauthor überschreiben - -- wordpress no email notification comment WordPress keine E-Mail-Benachrichtigung Kommentar - -- wont translate edit-comments.php approved gewohnt übersetzen edit-comments.php genehmigt - --