Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 בהודעות דוא"ל לא לשלוח תגובה לאחר אישור WordPress ב 2.5 ו 2.5.1

In בתוך WordPress 2.5 WordPress 2.5 and ו 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. , כאשר הוא בחר את האפשרות לדוא"ל לכתוב הערה מחבר בכל פעם הוא נשלח (comments_notify = 1), לא נוצרת הודעת דואר אלקטרוני שנשלחה או להודיע הודעה מחבר אם התגובה היא שנערך התמתנות תור והיא אושרה רק במועד מאוחר יותר באמצעות עריכת-תגובות . 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. לפני WordPress 2,5, הודעת דוא"ל נשלחת על אישור לפרסם מחבר הערה גם אם הוא חייב להיות מאושר ולא פורסם באופן מיידי. 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. עם זאת, הודעה על כך הערה נערך על התמתנות ו דורשים פעולה של מנהל לאשר, או למחוק את ההודעה זבל פועל כהלכה, עם כתובת הדוא"ל של מנהל שולחת את כתובת הדוא"ל (admin_email), לא לכתוב המחבר.

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. It'sa באג כי כבר הציגה ב-WordPress 2.5, ו slips לתוך WordPress 2.5.1 כאשר moderation.php פונקציונליות הועבר ל-comments.php לערוך. The bug will probably be fixed in WordPress 2.5.2 release. הבאג יהיה כנראה להיות קבוע ב-WordPress 2.5.2 שפורסמו. 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: אם אתה לא יכול לחכות, פשוט לערוך wp-includes/comment.php על בלוג WordPress Directory על השרת, ולהוסיף את השורות הבאות קוד:

Before: לפני:

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);
כאשר
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: אחרי:

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);
כאשר
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. חשוב: אתה קריאת מכונה לתרגם דף שבו ניתן "כפי שהוא", ללא אחריות. 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. שלא כמו האדם תרגום, תרגום מכונה אינו מבין את הדקדוק, סמנטיקה, תחביר, idioms של שפה טבעית, ולכן לעיתים קרובות לא מדויקים ו לייצר באיכות נמוכה טקסט שהוא מטעה ו מובנת. Thus, please refer to לכן, אנא פנה אל original English article המאמר המקורי באנגלית when in doubt. במקרה של ספק.



11 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 11 תגובות ל "בהודעות דוא"ל לא לשלוח תגובה לאחר אישור WordPress ב 2.5 ו 2.5.1"

  1. Rob Layton רוב Layton
    March 24th, 2009 02:34 מרץ 24, 2009 02:34
    11 11

    In case this doesn’t work, or you need details on the the cPanel method, I wrote it all out at במקרה זה לא עובד, או אם אתה צריך פרטים נוספים על השיטה את cPanel, אני כתבתי את הכל החוצה ב http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/ http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/

    Good luck! בהצלחה!

  2. mike מייק
    January 18th, 2009 19:13 ינואר 18, 2009 19:13
    10 10

    Ldn2m0 hi! Ldn2m0 Hi! how you doin? מה שלומך?

  3. Marcin Marcin
    October 15th, 2008 07:26 אוקטובר 15, 2008 07:26
    9 9

    In 2.6.1 it should look as this: ב 2.6.1 זה צריך להיראות כמו זה:

    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: השינוי היחיד הוא מוסיף:

    == true

  4. ordersomabuyg ordersomabuyg
    September 22nd, 2008 05:42 ספטמבר 22, 2008 05:42
    8 8

    Wow Cool ! וואו מגניב!
    Super Man סופר אדם
    Nice Site Nice site

  5. Chris כריס
    September 4th, 2008 04:15 4 בספטמבר, 2008 04:15
    7 7

    This WPMU behavior was driving me a bit nuts. התנהגות זו WPMU נהג לי קצת משוגע. Much thanks for sharing your solution! הרבה תודה על שיתוף הפתרון שלך!

  6. paul פול
    July 11th, 2008 17:30 11 יולי 2008 17:30
    6 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. תודה על ההודעה של 'ניהול' - אני לנהל א (לא?) הבלוג של הארגון, ואת הבוס שלי הפסיק לקבל הודעות דוא"ל, מאז שדרוג ל 2.5.x - אני מאמין שלך הציע תיקון זה יש קבוע.

    So, again thanks very much! אז, שוב תודה רבה!

  7. Guillermo Scharffenorth Guillermo Scharffenorth
    June 27th, 2008 20:49 יוני 27, 2008 20:49
    5 5

    Hello, שלום,

    Tried it. ניסית את זה. It did not work. זה לא עובד. Thanks anyways. תודה בכל מקרה.

  8. admin Admin
    June 20th, 2008 12:28 יוני 20, 2008 12:28
    4 4

    Try to just add in the additional lines (the difference). נסה להוסיף רק את שורות נוספות (ההבדל).

  9. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:57 יוני 20, 2008 11:57
    3 3

    Hi, הי,

    The code I posted is from 2.5.1. את הקוד אני Posted הוא 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? האם אתה חושב שיש להחליף את הקוד הזה עם אחד אתה יכול לתקן את זה פורסם בעיה?

  10. admin Admin
    June 20th, 2008 11:53 יוני 20, 2008 11:53
    2 2

    version 2.5. גירסה 2.5.

  11. Guillermo Scharffenorth Guillermo Scharffenorth
    June 20th, 2008 11:29 יוני 20, 2008 11:29
    1 1

    Hello, שלום,

    The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. את הקוד מודפס תחת 'לפני' הוא שונה, כי אחד wp-includes/comment.php. This is the code in comment.php: זהו קוד 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";
    כאשר 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? איזו גירסה של WP השגת את זה קוד?

Leave a Reply השאירו תגובה

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> אתה יכול להשתמש בקבצי תגיות: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <דל datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. הצטרף כמנוי ל הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה על תגובות העדכנית פורסם, כדי להירשם Tip and Trick Comments RSS feed עצה ו טריק תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

Incoming Search Terms for the Article חיפוש נכנס על תנאי סעיף

wordpress comment notification wordpress הודעת תגובה - -- wordpress not sending email wordpress לא שולחים דוא"ל - -- wordpress email notification wordpress הודעת דוא"ל - -- wordpress email not working wordpress דוא"ל לא עובד - -- wordpress wordpress - -- wordpress not sending emails שליחת הודעות דוא"ל לא wordpress - -- comment notification wordpress הודעת התגובה wordpress - -- wordpress notification הודעה wordpress - -- wordpress not sending mail wordpress לא שליחת דואר - -- wordpress comments notification wordpress תגובות להודעות - -- wordpress not emailing wordpress לא דואר אלקטרוני - -- wordpress comment notification email wordpress התגובה הודעת דוא"ל - -- wordpress comments_notify wordpress comments_notify - -- wordpress Email Notification not working wordpress הודעת דוא"ל לא עובד - -- wordpress notify comments wordpress להודיע תגובות - -- $wpdb->prepare $ wpdb-> להכין - -- Wordpress comment email notification Wordpress תגובה הודעה בדוא"ל - -- wordpress email notifications wordpress הודעות דוא"ל - -- wordpress not sending notification wordpress לא לשלוח הודעה - -- all הכל - -- wordpress author comment notification wordpress מחבר הודעת תגובה - -- post notification wordpress לכתוב הודעה wordpress - -- wordpress email comment notification wordpress דוא"ל תגובה הודעה - -- wordpress Comment notification emails wordpress תגובה בהודעות דוא"ל - -- wordpress comment approval wordpress התגובה לאישור - -- wordpress auto approve comments wordpress Auto לאשר תגובות - -- wordpress emails wordpress דוא"ל - -- wordpress registration email not working wordpress ההרשמה דוא"ל לא עובד - -- wordpress comments not sending email wordpress תגובות לא שולחים דוא"ל - -- email comments WOrdPress דוא"ל הערות WOrdPress - -- wordpress comment notifications wordpress התגובה הודעות - -- wordpress email post notification wordpress לכתוב הודעת דוא"ל - -- wordpress 2.5 email moderation wordpress 2,5 דוא"ל נחתנות - -- wordpress email comments for approval תגובות wordpress דוא"ל לאישור - -- wordpress Register Plus not sending email הרשמה wordpress פלוס לא שולחים דוא"ל - -- wordpress not sending admin emails wordpress לא Admin שליחת הודעות דוא"ל - -- no comment notifications wordpress 2.5 אין תגובה להודעות wordpress 2.5 - -- y Y - -- how do i set comment approval? כיצד אוכל להגדיר התגובה לאישור? - -- wordpress email comment author wordpress דוא"ל תגובה מחבר - -- wordpress 2.5.1 not sending mail wordpress 2.5.1 לא שולח דואר - -- wordpress 2.5.1 not receiving new comment emails wordpress 2.5.1 לא מקבל הודעות דוא"ל תגובה חדשה - -- wordpress notifications wordpress הודעות - -- wordpress comment approval email wordpress תגובה לאישור הדוא"ל - -- Wordpress comment approve action Wordpress התגובה לאשר פעולה - -- wordpress is not sending e-mail notification with gmail wordpress אינו שליחת הודעת דואר אלקטרוני עם Gmail - -- wordpress not emailing notifications הודעות דואר אלקטרוני לא wordpress - -- wordpress post emailer wordpress לכתוב emailer - -- word press email notification הקש מילה הודעת דוא"ל - -- wordpress comment email notification not working wordpress התגובה הודעת דוא"ל לא עובד - --