Å뺸 ÀüÀÚ ¿ìÆí WordPress 2.5¿Í 2.5.1¿¡ ÀÖ´Â ÄÚ¸àÆ® ½ÂÀÎ ÈÄ¿¡ º¸³»Áö ¾Ê±â À§ÇÏ¿©

¿¡¼­ WordPress 2.5 ±×¸®°í Wordpress 2.5.1ÄÚ¸àÆ®°¡ (= 1°³¸¦ comments_notify) ¹èÄ¡µÈ´Ù ¾ðÁ¦µçÁö, ¶§ Æ÷½ºÆ® ÀúÀÚ¸¦ À̸ÞÀÏÀ» º¸³»±â À§ÇÏ¿© ¼±ÅñÇÀÌ ¼³Á¤µÉ, Å뺸 ÀüÀÚ ¿ìÆíÀº »ý¼ºµÇÁö ¾Ê´Â´Ù ¶Ç´Â ÄÚ¸àÆ®°¡ Àýµµ Å¥¿¡¼­ º¸ÀüµÇ°í¸¦ ÅëÇØ¼­¸¸ ³ªÁß¿¡ Âù¼ºµÇ´Â °æ¿ì¿¡ Æ÷½ºÆ® ÀúÀÚ¸¦ ÅëÁöÇϱâ À§ÇÏ¿© º¸³»´Â ÆíÁýÇϽʽÿÀ comments.php.

WordPress 2.5 ÀÌÀü¿¡, ÀüÀÚ ¿ìÆíÀº Æ÷½ºÆ® ÀúÀÚ¿¡°Ô ½ÂÀο¡ ºñ·Ï ÄÚ¸àÆ®°¡ Áï½Ã¿¡ Âù¼ºµÇ°í ¹èÄ¡µÇÁö ¾ÊÀ» °ÍÀ» ¿ä±¸µÇ´õ¶óµµ º¸³»Áø´Ù. ±×·¯³ª ÄÚ¸àÆ®°¡ Àýµµ¸¦ À§ÇØ º¸ÀüµÇ°Å³ª ÇàÁ¤°üÀÇ È°µ¿ÀÌ, »èÁ¦Çϱâ À§ÇÏ¿© Âù¼ºÇÒ °ÍÀ» ¿ä±¸ÇÑ´Ù ¸Þ½ÃÁö¸¦ ½ºÆÔÇÏ´Â °ÍÀº Á¦´ë·Î ÀÛµ¿Çϰí ÀÖ´Ù´Â °ÍÀ», ÀüÀÚ ¿ìÆí°ú ´õºÒ¾î Å뺸´Â, ÇàÁ¤°üÀÇ À̸ÞÀÏ ÁÖ¼Ò (admin_email), Æ÷½ºÆ® ÀúÀÚ¿¡ ¾Æ´Õ´Ï´Ù º¸³½´Ù.

WordPress 2.5¿¡¼­ ¼Ò°³µÈ ¹ú·¹À̰í, WordPress 2.5.1·Î moderation.php ±â´ÉÀÌ·Î ÆíÁýÇÒ comments.php À̵¿µÉ ¶§ ¹Ì²ô·¯Áø´Ù. ¹ú·¹´Â WordPress 2.5.2 ¹æÃâ¿¡¼­ ¾Æ¸¶ °íÃÄÁú °ÍÀÌ´Ù. ´ç½ÅÀÌ ±â´Ù¸± ¼ö ¾ø´Â °æ¿ì¿¡, °£´ÜÇÏ°Ô ÆíÁýÇϽʽÿÀ ¶Ç´Â comment.php wp Æ÷ÇÔÇÑ´Ù À¥ ¼­¹ö¿¡ 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 is not sending e-mail notification with gmail - 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 -