Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 إشعار عدم ارسال الرسائل الالكترونية وبعد الموافقة على التعليق في ووردبرس] 2.5 و2.5.1

In في WordPress 2.5 ووردبرس] 2.5 and و Wordpress 2.5.1 وورد 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. وقبل ووردبرس] 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. انها علة التي تم إدخالها في ووردبرس] 2.5 ، وانزلاق إلى 2.5.1 ووردبرس] moderation.php عندما انتقلت إلى وظيفة كان تحرير - comments.php. The bug will probably be fixed in WordPress 2.5.2 release. فإن من المحتمل أن يكون علة ثابتة في اطلاق سراح ووردبرس] 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 على ووردبرس] بلوق دليل على خادم الويب ، وإضافة الخطوط التالية من مدونة :

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);

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);

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. وخلافا للحقوق الترجمة ، الترجمة الآلية لا يفهم قواعد اللغة ، ودلالات ، تركيب ، والتعابير من اللغة الطبيعية ، وهكذا تنتج في كثير من الأحيان غير دقيقة وتدني نوعية النص الذي هو مضلل وغير مفهومة. Thus, please refer to وهكذا ، يرجى الرجوع إلى original English article المادة الانكليزية الأصلية when in doubt. عندما في شك.



9 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1” 9 الردود على "الإخطار عدم ارسال الرسائل الالكترونية وبعد الموافقة على التعليق في ووردبرس] 2.5 و2.5.1"

  1. Guillermo Scharffenorth غييرمو Scharffenorth
    June 20th, 2008 11:29 يونيو 20th ، 2008 11:29
    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";

    Which version of WP did you get that code from? نسخة من الفسفور الابيض الذي لم تحصل عليه من أن قانون؟

  2. admin الادارية
    June 20th, 2008 11:53 يونيو 20th ، 2008 11:53
    2

    version 2.5. النسخة 2.5.

  3. Guillermo Scharffenorth غييرمو Scharffenorth
    June 20th, 2008 11:57 يونيو 20th ، 2008 11:57
    3

    Hi, أهلا ،

    The code I posted is from 2.5.1. مدونة موقع هو الأول من 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? هل تعتقد أن الاستعاضة عن هذا القانون مع واحد يمكن تحديد موقع لكم في هذه المسألة؟

  4. admin الادارية
    June 20th, 2008 12:28 يونيو 20th ، 2008 12:28
    4

    Try to just add in the additional lines (the difference). فقط في محاولة لإضافة خطوط إضافية في (الفرق).

  5. Guillermo Scharffenorth غييرمو Scharffenorth
    June 27th, 2008 20:49 يونيو 27th ، 2008 20:49
    5

    Hello, مرحبا ،

    Tried it. حاول. It did not work. الا ان ذلك لم يفلح. Thanks anyways. شكرا على أي حال.

  6. paul بول
    July 11th, 2008 17:30 يوليو 11th ، 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. شكرا لمنصب 'المشرف' -- الأول للمساعدة في إدارة (أ) (غير؟) الشركات بلوق ، وتوقفت مدرب بلدي الحصول على إخطارات البريد الإلكتروني لرفع مستوى منذ 2.5.x -- اعتقد ان التصحيح قد اقترح الخاصة بك ثابتة.

    So, again thanks very much! لذا ، مرة أخرى شكرا جزيلا!

  7. Chris كريس
    September 4th, 2008 04:15 سبتمبر 4th ، 2008 04:15
    7

    This WPMU behavior was driving me a bit nuts. WPMU هذا السلوك كان يقود لي المكسرات قليلا. Much thanks for sharing your solution! كثيرا بفضل لتقاسم الخاصة بك الحل!

  8. ordersomabuyg
    September 22nd, 2008 05:42 سبتمبر 22nd ، 2008 05:42
    8

    Wow Cool ! واو كول!
    Super Man سوبر مان
    Nice Site نيس الموقع

  9. Marcin
    October 15th, 2008 07:26 أكتوبر 15th ، 2008 07:26
    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

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

wordpress not sending email ووردبرس] عدم ارسال البريد الالكتروني - -- wordpress comment notification ووردبرس] تعليق الإخطار - -- wordpress ووردبرس] - -- wordpress not sending emails ووردبرس] عدم ارسال رسائل البريد الإلكتروني - -- wordpress comment notification email ووردبرس] تعليق إخطار البريد الإلكتروني - -- wordpress not sending notification ووردبرس] عدم ارسال الاشعار - -- wordpress author comment notification تعليق إخطار مقدم البلاغ ووردبرس] - -- wordpress email comment notification البريد الإلكتروني ووردبرس] تعليق الإخطار - -- WordPress Notification الإخطار ووردبرس] - -- wordpress not emailing ووردبرس] لا إرساله عبر البريد الإلكتروني - -- wordpress 2.5 email moderation 2.5 البريد الإلكتروني الاعتدال ووردبرس] - -- wordpress email comments for approval ووردبرس] البريد الإلكتروني تعليقات للموافقة عليها - -- comment notification wordpress تعليق الإخطار ووردبرس] - -- no comment notifications wordpress 2.5 لا تعليق الإخطارات ووردبرس] 2.5 - -- how do i set comment approval? كيف يمكنني التعليق على موافقة مجموعة؟ - -- wordpress email comment author البريد الإلكتروني تعليق مقدم البلاغ ووردبرس] - -- wordpress 2.5.1 not sending mail 2.5.1 ووردبرس] عدم ارسال البريد - -- wordpress 2.5.1 not receiving new comment emails 2.5.1 ووردبرس] لا تتلقى رسائل البريد الإلكتروني تعليق جديد - -- wordpress comment approval email ووردبرس] تعليق الموافقة على البريد الإلكتروني - -- wordpress is not sending e-mail notification with gmail ووردبرس] ليس إرسال البريد الإلكتروني مع إخطار gmail - -- wordpress not emailing notifications ووردبرس] لا إخطارات البريد الإلكتروني - -- $wpdb->prepare دولار wpdb -> إعداد - -- wordpress Comment notification emails ووردبرس] التعليق الإخطار رسائل البريد الإلكتروني - -- wordpress email post notification ووردبرس] بعد إخطار البريد الإلكتروني - -- wordpress 2.5 email authors when comments posted ووردبرس] 2.5 البريد الإلكتروني المؤلفين عندما نشرت تعليقات - -- Notification Emails Not Send After Comment Approval الإخطار لا ترسل رسائل البريد الإلكتروني بعد موافقة تعليق - -- wordpress Register Plus not sending email سجل زائد ووردبرس] عدم ارسال البريد الالكتروني - -- wordpress 2.5 not sending email 2.5 وردبرس] عدم ارسال البريد الالكتروني - -- wordpress 2.5.1 email notification ووردبرس] 2.5.1 إشعارا بالبريد الالكتروني - -- new comment notification wordpress 2.5 admin تعليق جديد 2.5 الادارية إخطار ووردبرس] - -- wordpress notify by email comments ووردبرس] تخطر التعليقات عن طريق البريد الإلكتروني - -- wordpress 2.5.1 not receiving emails 2.5.1 ووردبرس] لا تتلقى رسائل البريد الإلكتروني - -- approve comments php الموافقة على التعليقات php - -- $wpdb->query not working 2.5 دولار wpdb -> استفسار لا تعمل 2.5 - -- comment notification wordpress 2.5 تعليق الإخطار ووردبرس] 2.5 - -- 2.5.1, comment notification, wordpress 2.5.1 ، تعليق الإخطار ، ووردبرس] - -- wordpress notification 2.5 disable الإخطار 2.5 تعطيل ووردبرس] - -- send comments in wordpress to email إرسال التعليقات إلى البريد الإلكتروني في ووردبرس] - -- wordpress approval email ووردبرس] الموافقة على البريد الإلكتروني - -- send email via php for approval إرسال بريد إلكتروني للموافقة عليها عن طريق php - -- wordpress comment notification on approval ووردبرس] تعليق الموافقة على الإخطار - -- wordpress, comment notification, problem, 2.5 ووردبرس] ، تعليق الإخطار ، مشكلة ، 2.5 - -- wordpress 2.5 no notification email ووردبرس] 2.5 أي إخطار البريد الإلكتروني - -- moderation notification wordpress الاعتدال الإخطار ووردبرس] - -- wordpress auto comment elfogadás السيارات ووردبرس] تعليق elfogadás - -- wordpress not sending comment notification emails ووردبرس] لا تعليق الإخطار إرسال رسائل البريد الإلكتروني - -- wordpress register-plus سجل زائد ووردبرس] - -- wp_notify_postauthor override wp_notify_postauthor تعلو - -- wordpress no email notification comment البريد الإلكتروني الإخطار ووردبرس] لا تعليق - -- wont translate edit-comments.php approved ترجمة متعود تحرير وافقت - comments.php - --