通知电子邮件不在评论认同以后送在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);

重要: 您读现状提供,不用保单的机器翻译的页。 不同于人工翻译,计算机翻译不了解语法,语义学,句法,成语自然语言,因而经常导致是引入歧途和不能理解的不精确和低品质文本。 因此,参见 原始的英国文章 当在疑义。



6 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1”

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

    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?

  2. admin
    June 20th, 2008 11:53
    2

    version 2.5.

  3. Guillermo Scharffenorth
    June 20th, 2008 11:57
    3

    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?

  4. admin
    June 20th, 2008 12:28
    4

    Try to just add in the additional lines (the difference).

  5. Guillermo Scharffenorth
    June 27th, 2008 20:49
    5

    Hello,

    Tried it. It did not work. Thanks anyways.

  6. paul
    July 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.

    So, again thanks very much!

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>

Subscribe without commenting


Custom Search

Incoming Search Terms for the Article

wordpress - wordpress not sending email - wordpress 2.5 email moderation - comment notification wordpress - wordpress not sending notification - no comment notifications wordpress 2.5 - how do i set comment approval? - wordpress email comment author - Wordpress comment notification email - wordpress 2.5.1 not sending mail - wordpress 2.5.1 not receiving new comment emails - wordpress 2.5 email authors when comments posted - Notification Emails Not Send After Comment Approval - wordpress email comments for approval - wordpress Register Plus not sending email - wordpress 2.5 not sending email - wordpress 2.5.1 email notification - new comment notification wordpress 2.5 admin - wordpress 2.5.1 not receiving emails - approve comments php - $wpdb->query not working 2.5 - comment notification wordpress 2.5 - 2.5.1, comment notification, wordpress - wordpress notification 2.5 disable - send comments in wordpress to email - wordpress approval email - wordpress comment notification on approval - wordpress, comment notification, problem, 2.5 - wordpress 2.5 no notification email - moderation notification wordpress - wordpress auto comment elfogadás - wordpress not sending comment notification emails - wordpress register-plus - wp_notify_postauthor override - wordpress no email notification comment - wont translate edit-comments.php approved - send to admin not author comment notification wordpress - wordpress 2.5.2 problem + mail notification - wordpress notification not working 2.5 comment - wordpress 2.5+ new comment + notify admin - wordpress comment no approval email - wordpress. comment notification, php, 2.5 - wordpress comment approving not sending email - wordpress not sending email comments 2.51 - WordPress : not receiving email notification when comments are approved - wordpress notify author comment - wordpress 2.5.1 admin email comments notification - wordpress 2.5 comment notification - email is not generated for moderation of new user with wordpress - email notification in wp 2.5 -