Å뺸 ÀüÀÚ ¿ìÆí 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);
Áß¿äÇÑ: ´ç½ÅÀº º¸Àå ¾øÀÌ "ÀÖ´Â ±×´ë·Î" Á¦°øµÇ´Â ±â°è ¹ø¿ª ÆäÀÌÁö¸¦ Àаí ÀÖ´Ù. »ç¶÷ ¹ø¿ª°ú´Â ´Ù¸¥, ±â°è¹ø¿ªÀº ¹®¹ý, Àǹ̷Ð, Åë¾î·Ð, ÀÚ¿¬ ¾ð¾îÀÇ °ü¿ë±¸¸¦ ÀÌÇØÇÏÁö ¾ÊÀ¸¸ç, µû¶ó¼ ¼ö½Ã·Î ¿ÀÇØÇϱ⠽±°í ºÒ°¡ÇØÇÑ ºÎÁ¤È®ÇÑ ³·Àº Áú ¿øº»À» ÀÏÀ¸Å²´Ù. µû¶ó¼, Âü°íÇϽʽÿÀ ¿ø·¡ ¿µ±¹ ±â»ç ÀÇȤ¿¡¼ ¶§.
°ü·Ã ±â»ç
- WordPress 2.5.1´Â ´Ù¿î·Îµå¸¦ À§ÇØ Ç®¾î ³õ¾Ò´Ù
- È®Á¤µÇÁö ¾Ê´Â ±â´É¿¡ ¿Üħ: wp_constrain_dimensions´Â WordPress 2.5¿¡ Àִ ȶû ¶Ç´Â ¸Åü µµ¼°ü¿¡¼ () ¶§ ¿Ã·ÁÁֱ⠽ɻó ¶Ç´Â () image_downsize
- °íħ WordPress 2.5 ½É»ó ¶Ç´Â ¸Åü´Â IE7¿¡ ÀÖ´Â ¹®Á¦Á¡À» ÀÛµ¿ÇÏÁö ¾Ê´Â Uploader ¹øÂ½ÀδÙ
- WordPress´Â ´Ù¿î·Îµå¸¦ À§ÇØ 2.5 RC2 Ç®¾î ³õ¾Ò´Ù
- È®Á¤µÇÁö ¾Ê´Â ±â´É¿¡ ¿Üħ: WordPress 2.5¿¡¼ ctype_digit ()
- 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!