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.
Related Articles Verwandte Artikel
- WordPress 2.5.1 Released for Download WordPress 2.5.1 zum Download freigegeben
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Aufruf an Undefinierte Funktion: wp_constrain_dimensions () Beim Hochladen von Bildern oder image_downsize () in der Galerie / Media Library in WordPress 2/5
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2/5 Bild oder Flash Media Uploader nicht funktioniert Problem in IE7
- WordPress 2.5 RC2 Released for Download WordPress 2/5 RC2 zum Download freigegeben
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Call Um Undefinierte Funktion: ctype_digit () in WordPress 2/5
- Make WordPress Blog More Secure Using Secret Key Machen Sie WordPress Blog sicherer mit Hilfe geheimer Schlüssel
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Error beim Anruf zu Add_Query_Var in Taxonomy.php Nach dem Upgrade auf WordPress 2/5 RC2
- Contact Kontakt
- WordPress 2.5 Released for Free Download WordPress 2/5 zum freien Download
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Workaround, um WordPress Kurzwahlnummer und die Anzeige [] Klammern Tags

































June 20th, 2008 11:29 20. Juni 2008 11:29
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?
June 20th, 2008 11:53 20. Juni 2008 11:53
version 2.5. Version 2.5.
June 20th, 2008 11:57 20. Juni 2008 11:57
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?
June 20th, 2008 12:28 20. Juni 2008 12:28
Try to just add in the additional lines (the difference). Versuchen Sie, fügen Sie einfach in die zusätzliche Zeilen (die Differenz).
June 27th, 2008 20:49 27. Juni 2008 20:49
Hello, Hallo,
Tried it. Versucht es. It did not work. Es hat nicht funktioniert. Thanks anyways. Dank Wie auch immer.
July 11th, 2008 17:30 11. Juli 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. 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!
September 4th, 2008 04:15 4. September 2008 04:15
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!
September 22nd, 2008 05:42 22. September 2008 05:42
Wow Cool ! Wow Cool!
Super Man Super Man
Nice Site Nice Site
October 15th, 2008 07:26 15. Oktober 2008 07:26
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