Resurrect comment approval notification. Props chmac. fixes #6892 for 2.5

git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-05-12 16:14:55 +00:00
parent db8c958df0
commit ddb46bdf16

View File

@ -726,6 +726,8 @@ function wp_set_comment_status($comment_id, $comment_status) {
break;
case 'approve':
$query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
if ( get_option( 'comments_notify' ) == true )
wp_notify_postauthor( $comment_id );
break;
case 'spam':
$query = "UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";