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. عندما في شك.
Related Articles المواد ذات الصلة
- WordPress 2.5.1 Released for Download ووردبرس] 2.5.1 أطلق سراحه لتنزيل
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 دعوة إلى وظيفة غير معرف : wp_constrain_dimensions () عند تحميل الصور أو image_downsize () في معرض / وسائل الإعلام في المكتبة ووردبرس] 2.5
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 فيكس ووردبرس] 2.5 صورة أو فلاش رافع الترجمة وسائل الاعلام لا تعمل في قضية IE7
- WordPress 2.5 RC2 Released for Download ووردبرس] 2.5 RC2 أطلق سراحه لتنزيل
- Call To Undefined Function: ctype_digit() in WordPress 2.5 دعوة غير معرف الوظيفة : ctype_digit () في ووردبرس] 2.5
- Make WordPress Blog More Secure Using Secret Key جعل بلوق ووردبرس] أكثر أمنا باستخدام سرية الرئيسية
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP خطأ فادح على دعوة لAdd_Query_Var في Taxonomy.php بعد ترقية إلى 2.5 RC2 ووردبرس]
- Contact جهة الاتصال
- WordPress 2.5 Released for Free Download ووردبرس] 2.5 أطلق سراحه لتحميل مجاني
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags لإيجاد حل وتجاوز العرض القصير ووردبرس] [] الأقواس العلامات

































June 20th, 2008 11:29 يونيو 20th ، 2008 11:29
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? نسخة من الفسفور الابيض الذي لم تحصل عليه من أن قانون؟
June 20th, 2008 11:53 يونيو 20th ، 2008 11:53
version 2.5. النسخة 2.5.
June 20th, 2008 11:57 يونيو 20th ، 2008 11:57
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? هل تعتقد أن الاستعاضة عن هذا القانون مع واحد يمكن تحديد موقع لكم في هذه المسألة؟
June 20th, 2008 12:28 يونيو 20th ، 2008 12:28
Try to just add in the additional lines (the difference). فقط في محاولة لإضافة خطوط إضافية في (الفرق).
June 27th, 2008 20:49 يونيو 27th ، 2008 20:49
Hello, مرحبا ،
Tried it. حاول. It did not work. الا ان ذلك لم يفلح. Thanks anyways. شكرا على أي حال.
July 11th, 2008 17:30 يوليو 11th ، 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. شكرا لمنصب 'المشرف' -- الأول للمساعدة في إدارة (أ) (غير؟) الشركات بلوق ، وتوقفت مدرب بلدي الحصول على إخطارات البريد الإلكتروني لرفع مستوى منذ 2.5.x -- اعتقد ان التصحيح قد اقترح الخاصة بك ثابتة.
So, again thanks very much! لذا ، مرة أخرى شكرا جزيلا!
September 4th, 2008 04:15 سبتمبر 4th ، 2008 04:15
This WPMU behavior was driving me a bit nuts. WPMU هذا السلوك كان يقود لي المكسرات قليلا. Much thanks for sharing your solution! كثيرا بفضل لتقاسم الخاصة بك الحل!
September 22nd, 2008 05:42 سبتمبر 22nd ، 2008 05:42
Wow Cool ! واو كول!
Super Man سوبر مان
Nice Site نيس الموقع
October 15th, 2008 07:26 أكتوبر 15th ، 2008 07:26
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