通知電子郵件不在評論認同以後送在WordPress 2.5和2.5.1
在 WordPress 2.5 并且 Wordpress 2.5.1,當設置選擇給崗位作者發電子郵件時,每當評論被張貼(comments_notify = 1),通知電子郵件沒有引起或送通知崗位作者,如果評論在緩和隊列舉行和以後只被批准通過編輯comments.php。
在WordPress 2.5之前,電子郵件被送供試用到崗位作者,即使要求評論立即被批准和不被張貼。 然而,通知評論為緩和舉行并且要求管理員的行動批准,刪除或發送同樣的消息到多個新聞組消息適當地運作,與電子郵件送到管理員的電子郵件(admin_email),不是崗位作者。
它是在WordPress 2.5被介紹了的臭蟲,并且滑倒入WordPress 2.5.1,當moderation.php功能搬入編輯comments.php。 臭蟲在WordPress 2.5.2發行大概將被固定。 如果您不可能等待,簡單地編輯 wp包括或comment.php 在WordPress blog目錄在網絡服務器,和增加以下代碼行:
以前:
斷裂;
案件『批准』 :
$query = $wpdb->prepare (「更新$wpdb->comments集合comment_approved='1 comment_ID = %d極限1」, $comment_id);
斷裂;
案件『發送同樣的消息到多個新聞組』 :
$query = $wpdb->prepare (「更新$wpdb->comments集合comment_approved='spam comment_ID = %d極限1」, $comment_id);
以後:
斷裂;
案件『批准』 :
$query = $wpdb->prepare (「更新$wpdb->comments集合comment_approved='1 comment_ID = %d極限1」, $comment_id);
如果(get_option (『comments_notify』) ==真實) {
wp_notify_postauthor ($comment);
}
斷裂;
案件『發送同樣的消息到多個新聞組』 :
$query = $wpdb->prepare (「更新$wpdb->comments集合comment_approved='spam comment_ID = %d極限1」, $comment_id);
重要: 您讀現狀提供,不用保單的機器翻譯的頁。 不同於人工翻譯,計算機翻譯不瞭解語法,語義學,句法,成語自然語言,因而經常導致是引入歧途和不能理解的不精確和低品質文本。 因此,參見 原始的英國文章 當在疑義。
相關文章
- 為下載2.5.1發布的WordPress
- 電話到未定義作用: wp_constrain_dimensions (),當上裝的圖像或在畫廊或媒介圖書館在WordPress 2.5 image_downsize ()
- 固定WordPress 2.5圖像或媒介一刹那Uploader在IE7不運作問題
- WordPress 2.5 RC2為下載發布了
- 電話到未定義作用: ctype_digit ()在WordPress 2.5
- 使WordPress Blog安全使用秘密鑰匙
- 聯絡
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2
- WordPress 2.5 Released for Free Download
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags

































June 20th, 2008 11:29
Hello,
The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. This is the 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?
June 20th, 2008 11:53
version 2.5.
June 20th, 2008 11:57
Hi,
The code I posted is from 2.5.1. Do you think that replacing this code with the one you posted could fix this issue?
June 20th, 2008 12:28
Try to just add in the additional lines (the difference).
June 27th, 2008 20:49
Hello,
Tried it. It did not work. Thanks anyways.
July 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.
So, again thanks very much!